Results 1 to 6 of 6

Thread: Saving Contents of TreeView Control

  1. #1

    Thread Starter
    Fanatic Member Geespot's Avatar
    Join Date
    Oct 2001
    Location
    Birmingham, UK
    Posts
    577

    Saving Contents of TreeView Control

    Is there a simple method of saving and loading the whole populated contents of a TreeView control.

    I have done this once before but i went through each and every node and saved the information to a file, But that was tedious and slightly buggy.

    Is there like a command Treeview1.Save?

    Thanks

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    Question: How is your treeview control populated? If, like most, your treeview is populated based on the contents of a DB field, then you already have what you want sitting in your database.

  3. #3

    Thread Starter
    Fanatic Member Geespot's Avatar
    Join Date
    Oct 2001
    Location
    Birmingham, UK
    Posts
    577
    It will be similar to Windows Explorer. Users will be able to click a node and create new ones all on the fly. So the treeview could contain anything and in any order.

  4. #4

    Thread Starter
    Fanatic Member Geespot's Avatar
    Join Date
    Oct 2001
    Location
    Birmingham, UK
    Posts
    577
    oops silly me, this was supposed to be in the general forum

    sorry about that

  5. #5

    Thread Starter
    Fanatic Member Geespot's Avatar
    Join Date
    Oct 2001
    Location
    Birmingham, UK
    Posts
    577
    I am recreating this in the Generals Forum, please dont reply here
    thanks

  6. #6
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    Hmmm...interesting question. Have you tried looking on MSDN?
    (http://msdn.microsoft.com/)

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