|
-
Jun 10th, 2003, 12:38 PM
#1
Thread Starter
Addicted Member
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.
-
Jun 10th, 2003, 12:47 PM
#2
VB Code:
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|