[RESOLVED] TreeView Problem...
I'm using the good ol treeview and I can get everything else to seem to work with it except i want to make 1 of the nodes a weblink so when it's clicked it just opens up the page.
I have the code attached to a label right now and it works great... it opens up the default browser and goes right to that page w/ no problem, I only have the problem when I attach it to the node from treeview. Here is what i'm working with...
Code:
Private Sub TreeView1_NodeClick(ByVal Node As MSComctlLib.Node)
If Node = "gohome" Then
FilePath = "hxxp://xxx.site.com"
OpenFileDefault hwnd, "open", FilePath, vbNullString, _
vbNullString, 1
End If
End Sub
Wasn't quite sure how I would go about fixing this problem. Didn't know if it was b/c of having "MSComctlLib" in that code or not.
Any help is appreciated.