Results 1 to 3 of 3

Thread: Treeview

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2000
    Posts
    225
    Hiyas,

    A few things...

    1. I want it so when you click a node it doesn't enable you to rename it, at all, under any circumstances, nada. =) How would I do this?
    2. When you click a node, I want it so it gets the text of that node and gives it to you in a MsgBox. How would I do this?

    I've only just started learning about TreeViews, and I'm finding it daunting. Any help would be greatly appreciated. =)

    -Git

  2. #2
    Guest
    look on the property page of the treeview, there is option for this exact thing, its called "LABELEDIT" set it to TVWManual

  3. #3
    PowerPoster BruceG's Avatar
    Join Date
    May 2000
    Location
    New Jersey (USA)
    Posts
    2,657

    As far as your second question goes, you can put the following code in the NodeClick event:
    Code:
    Private Sub TreeView1_NodeClick(ByVal Node As MSComctlLib.Node)
        MsgBox Node.Text
    End Sub
    "It's cold gin time again ..."

    Check out my website here.

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