Results 1 to 3 of 3

Thread: Creating a treeview node

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2012
    Posts
    142

    Creating a treeview node

    I have a treeview from which I select a node, then click a button. That button adds the node to a treeview in another form. Now the node is there when I start up the form, but when I close and reopen it, its gone again. How can I keep it in the treeview?

    Also, how can I name the node, now I use this code:

    Code:
    Form2.Treeview1.Nodes(0).Nodes(0).Nodes.Add("5")

  2. #2
    PowerPoster Radjesh Klauke's Avatar
    Join Date
    Dec 2005
    Location
    Sexbierum (Netherlands)
    Posts
    2,244

    Re: Creating a treeview node

    It is gone, because it isn't saved. How do you create the list? (code please)


    If you found my post helpful, please rate it.

    Codebank Submission: FireFox Browser (Gecko) in VB.NET, Load files, (sub)folders treeview with Windows icons

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jan 2012
    Posts
    142

    Re: Creating a treeview node

    I think I found a solution, now I use booleans and it nearly works.

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