Results 1 to 2 of 2

Thread: Treeview and clicking certain nodes.

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2003
    Posts
    135

    Question Treeview and clicking certain nodes.

    Well what im trying to do is fiqure out how to setup some code incase a certian thing added to treeview is clicked i can make it activate somthing else.

    Here is the code im using to add to treeview.

    TreeView1.Nodes.add , , "N1", "General"
    TreeView1.Nodes.add "N1", tvwChild, "N1A", "weee"
    TreeView1.Nodes.add "N1A", tvwChild, , "More Stuff"
    TreeView1.Nodes.add "N1A", tvwChild, , "yeah."
    TreeView1.Nodes.add "N1A", tvwChild, , "hell yeah."

    I know you have to set it up in treeview_Nodeclick

    what im trying to do is :

    If TreeView1.SelectedItem = "N1A" Then MsgBox "yo"

    but that seems to not be working
    ive searched the forums a bit cant seem to find much
    so any help is thankful.

    thanks.

  2. #2
    Frenzied Member axion_sa's Avatar
    Join Date
    Jan 2002
    Location
    Joburg, RSA
    Posts
    1,724
    VB Code:
    1. If TreeView1.SelectedItem.[b]Key[/b] = "N1A" Then MsgBox "yo"

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