Results 1 to 5 of 5

Thread: Saving/using the .WriteXML method?

  1. #1

    Thread Starter
    Member andrew5578's Avatar
    Join Date
    Dec 2003
    Posts
    51

    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

  2. #2
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    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.

  3. #3

    Thread Starter
    Member andrew5578's Avatar
    Join Date
    Dec 2003
    Posts
    51
    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?
    aka Ender

  4. #4
    Member
    Join Date
    Dec 2003
    Posts
    43
    Access would keep it. Unless you want to spring for a high end database.

  5. #5

    Thread Starter
    Member andrew5578's Avatar
    Join Date
    Dec 2003
    Posts
    51
    Since i only have excel, what would i do?
    aka Ender

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width