-
Mar 30th, 2015, 09:42 PM
#1
Thread Starter
Addicted Member
[RESOLVED] Guidance on saving controls
It has been some time since I have posted here but I always seem to come back to this great resource when I need help.
I have a small windows form program that lets the user create controls (buttons) on a panel. I would like save these but the control collection of the panel is not serializable, so it is not immediately obvious how I would go about doing this.
My next thought was to create a datatable and storing the controls parameters, ie location, size, text etc then serializing this to disk.
I would then recreate the buttons next time the application is run.
I am open to any better suggestions on how best to do this.
Not looking for code, just and idea or two.
Thanks
-
Mar 30th, 2015, 10:14 PM
#2
Re: Guidance on saving controls
Originally Posted by 2ndmessiah
My next thought was to create a datatable and storing the controls parameters, ie location, size, text etc then serializing this to disk.
I would then recreate the buttons next time the application is run.
That's basically it. It doesn't have to be a DataTable and it doesn't have to be serialisation specifically but you would basically save the parameters that describe the controls to some external file and reload at startup.
-
Mar 31st, 2015, 10:57 AM
#3
Thread Starter
Addicted Member
Re: Guidance on saving controls
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|