Dynamically Form Generation

In C# , how can we easily generate form dynamically Suppose i want to write code under some buttons of different forms to show a form(where i may add controls anytime from anywhere) dynamically. I may click on those buttons more than one time. But it will show me the form only once. How can i resolve this

Pls Help & Encourage Me

(For more details)

There are 2 forms(f1 and f2), 2 buttons(fb1 in f1 and fb2 in f2). Clicking on fb1 button will add a control to my dyanamically generated form(say, df). Then clicking on fb2 button will add another control to that form (df). As many times i will click on those buttons, it should add controls on that form(df).



Answer this question

Dynamically Form Generation

  • Waif

    Can you share the code you allready have, because it sounds that you only have a little bug in your code.


  • Dynamically Form Generation