Need help in Treeview

Status
Not open for further replies.

bharanidharanit

Well-known member
Joined
Dec 8, 2008
Messages
53
Location
India
Programming Experience
1-3
Hello sir,
I want similar coding for treeview, where for linklabel is as follows.
VB.NET:
Expand Collapse Copy
Private Sub LinkLabel8_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles LinkLabel8.LinkClicked
        WebBrowser1.Navigate(Application.StartupPath & "\source\test.html\")
    End Sub
 
Here is help online, you should also have it in local help: TreeView Class (System.Windows.Forms)

You can use the default AfterSelect event (doubleclick the control), where you get the node info from e.Node.
 
Resolved it

I solved this, use file name in the tag with this extension and use the below coding

VB.NET:
Expand Collapse Copy
WebBrowser1.Navigate(Application.StartupPath & "\Source\" & e.Node.Tag)
 
Status
Not open for further replies.
Back
Top