I want to create a .NET form at runtime, add buttons and other controls to it (also at runtime), and then be able to generate something.designer.cs from this form (which can then be added to the C # solution and compiled).
What I want to do is very similar to what the WinForm designer does. But instead of having a drag / drop interface for the user, I want to dynamically build Form / Control itself at runtime.
I thought I could just reuse what WinForm designer does.
Is it possible?
source
share