How to save Form what ever we create on it? ?
-
I have from in C#, i am creating some panels on it at run time and add some forms into those panels i need to save form sate in a way so that when i close my form it should save what ever i draw on it. and when re open it ... it should show me last contains which i draw on form.. Help me in this regards i m really stuck in this issue..
-
I have from in C#, i am creating some panels on it at run time and add some forms into those panels i need to save form sate in a way so that when i close my form it should save what ever i draw on it. and when re open it ... it should show me last contains which i draw on form.. Help me in this regards i m really stuck in this issue..
It's really easy. You have to write code to do it. When your form closes, it fires and event. When it opens, it fires an event. Catch both, in one write the values where-ever you like, read them from the other and put them in the form.
Christian Graus Driven to the arms of OSX by Vista.
-
I have from in C#, i am creating some panels on it at run time and add some forms into those panels i need to save form sate in a way so that when i close my form it should save what ever i draw on it. and when re open it ... it should show me last contains which i draw on form.. Help me in this regards i m really stuck in this issue..
[Message Deleted]
-
[Message Deleted]
What the hell ? What does the singleton pattern have to do with persisting settings ?
Christian Graus Driven to the arms of OSX by Vista.
-
What the hell ? What does the singleton pattern have to do with persisting settings ?
Christian Graus Driven to the arms of OSX by Vista.
Hey, I think i dint got your question properly, can u let me know that, the form which you are closing is Main form of the Application or child form. If it is main form then you need to capture the "form load" and "form closing" event of the form, and write your own code to save the settings on closing, and load the settings when the form is loaded. :)