i have a strange problem with my treeview i currently have in my pogram (in vb6) a week ago i placed a treeview on my form and did all the code for it etc and got it to work fine, i even made an .exe and sent it to a friend so he could have a look @ how my program was coming along and that worked fine (and still does on mine and his)
now (last night) i tried to run my program and i got a user-defined error on the line (in bold)
Expand|Select|Wrap|Line Numbers
- Private Sub TreeView1_NodeClick(ByVal Node As MSComctlLib.Node)
- If TreeView1.SelectedItem.Text = "Ores" Then
- Txt_ItemName.Text = ""
- ElseIf TreeView1.SelectedItem.Text = "Minerals" Then
- Txt_ItemName.Text = ""
- Else
- If TreeView1.SelectedItem.Parent.Text = "Ores" Then
- Txt_ItemName.Text = ""
- Else
- Txt_ItemName.Text = TreeView1.SelectedItem.Text
- End If
- End If
- End Sub
i think the treeview reference is comctl32.ocx or .dll
i have both of them in my system and system32 folder and tried to reference it , it either just freezes or it comes back with and error.
also where the treeview was it has now been switched with a pic box.
can anyone cast there wisdom on this ? and give tell me the name of the reference that i need