Click here to Skip to main content
15,919,778 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
:) Hello all of the World

I need to know that how to create new form in C# .net 2008 at run time and then create any controls on that form and after designing save the form with all it's components?

help : xmlserializer

????
help me
Posted
Updated 20-Nov-10 3:05am
v2
Comments
Sandeep Mewara 20-Nov-10 9:05am    
What do you mean by "help:XMLSerializer" in your question?

If you are attempting to recreate the forms designer from Visual Studio then you have a very long road to travel. Microsoft has taken years to get to the current version, how many years do you have?
 
Share this answer
 
As a suggestion, look at the code in your existing Form.designer.cs file - it does exactly what you are trying to do: It creates the form at runtime. The ".designer.cs" file is maintained and holds the info to disply it by the IDE. You could do worse than create your own similar files, and compile them. This would also give you the option of tying events to controls, without which your form will be useless.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900