Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Treeview and hyperlink

Status
Not open for further replies.

VBXL

Programmer
Joined
Jul 10, 2001
Messages
198
Location
GB
Hi,

Is there a way to click on a node in a treeview
that opens up a web browser.

i.e click on a node to open up
Thanks

VBXL

VBXL
 
Code:
    private void treeView1_AfterSelect(object sender, System.Windows.Forms.TreeViewEventArgs e)
    {
	if (e.Node.Text == "Microsoft")

	    System.Diagnostics.Process.Start("[URL unfurl="true"]http://www.microsoft.com/");[/URL]
    }
 
Thanks, this works.

VBXL



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top