Results 1 to 12 of 12

Thread: [RESOLVED] TreeView Problem...

Threaded View

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Apr 2007
    Posts
    27

    Resolved [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.
    Last edited by SvPir8; Apr 8th, 2007 at 08:28 PM.

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