|
-
May 4th, 2004, 10:10 PM
#1
Thread Starter
Member
Saving/using the .WriteXML method?
If i have a bunch of labels, and according to what the user enters, the properties of the label change, (Only the position, and the visibility of the label) and i want the user to be able to save and so the next time the user gets on, he/she can click load, and type the name of the file, and have it open, with the labels in the exact place they were left before. Does anyone know how to do this?
Last edited by andrew5578; May 5th, 2004 at 08:26 AM.
aka Ender
-
May 4th, 2004, 10:38 PM
#2
PowerPoster
The way I would do it easily would be to create a dataset with a table that held name of control, visible, location columns. Then I would use the .WriteXML method to persist it to disk. Then I would use the .ReadXML method to load it back.
Then you can just do some foreach loops to load and save the settings.
-
May 5th, 2004, 08:25 AM
#3
Thread Starter
Member
How do you make a data set? What program would keep the data set? Excel maybe? Does anyone have an example of this? or an idea?
-
May 5th, 2004, 09:40 AM
#4
Member
Access would keep it. Unless you want to spring for a high end database.
-
May 5th, 2004, 06:47 PM
#5
Thread Starter
Member
Since i only have excel, what would i do?
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
|