Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Dynamically Designing and Saving Windows Forms, with data?
 

Dynamically Designing and Saving Windows Forms, with data?

Hi,

What is the best method to save a dynamically created Windows Forms and its data?

I have arequirement as follows:

There should be a designer (application) to design some Windows Forms and to save it (Like what we do in Visual Studio Windows Forms Designer). Then the application should render it when a user opens it in another mode (Say, in the normal running mode). The data should be loaded into the corresponding controls. Then the user should be able to add some controls to the form dynamically, and save it with some data. So there should be an option to save the data and the modified Form. There may be hundreds of controls on some forms, as the user will be able to add some row of controls (say, TextBoxes) many times, in long run.

What will be the best way to handle this kind of situation? How can we store the dynamically created forms very efficiently and effectively? What kind ofarchitecture isrecommend? Performance of the form has the highest priority.

I am new to this, so any reference to this kind of things will be highly appreciated.

Thanks and Regards,
Pauls Geo.

PrashGeo  Wednesday, April 16, 2008 2:43 PM

You could serialize the forms. I would use the Binary Serializer if you expect the objects to be on the larger side, AND if you do not need to send the serialized data to another application not written in .NET.

Rudedog

http://search.msdn.microsoft.com/Default.aspx?brand=Msdn&refinement=&locale=en-us&lang=en-us&query=serialize

http://search.msdn.microsoft.com/Default.aspx?brand=Msdn&refinement=&locale=en-us&lang=en-us&query=binary%20serialization

Rudedog2  Saturday, April 19, 2008 8:13 PM

You could serialize the forms. I would use the Binary Serializer if you expect the objects to be on the larger side, AND if you do not need to send the serialized data to another application not written in .NET.

Rudedog

http://search.msdn.microsoft.com/Default.aspx?brand=Msdn&refinement=&locale=en-us&lang=en-us&query=serialize

http://search.msdn.microsoft.com/Default.aspx?brand=Msdn&refinement=&locale=en-us&lang=en-us&query=binary%20serialization

Rudedog2  Saturday, April 19, 2008 8:13 PM

You can use google to search for other answers

Custom Search

More Threads

• inherit control in the flowLayoutPanel.
• Components, Design Time and Remoting issue
• CodeDomDesignerLoader generate XML as well as c#/vb
• Different form views on one form
• Replacement of ImageList Collection Editor
• WSOD: Could not load file or assembly for assemblies in project references
• Tooltip gone mad!
• Inheritence With Inheritence Picker????
• How to Publish latest build of application?
• How to hide some properties?