Question Treeview, when i click on a childnode?

AGS

New member
Joined
Nov 6, 2010
Messages
4
Programming Experience
5-10
I need some help. Up to now i have been using a menu format to navigate through forms. Now i would like to move and use treeview. I have been able to create the nodes and child nodes. What i need to know is when i click on a childnode how will it open a specific form. It should be fixed to the main screen as well. Also if anyone can attach a code for it, appricieat it
 

jmcilhinney

VB.NET Forum Moderator
Staff member
Joined
Aug 17, 2004
Messages
14,335
Location
Sydney, Australia
Programming Experience
10+
Displaying a form is exactly the same regardless. All you have to do is handle a different event. You won;t be handing the Click event of your menu items any more. You'll be handling the appropriate event of your TreeView, e.g. NodeMouseDoubleClick.
 

AGS

New member
Joined
Nov 6, 2010
Messages
4
Programming Experience
5-10
Do you have an example you could send me. Or where exactly do i have to do the coding. Thanks for your help
 

AGS

New member
Joined
Nov 6, 2010
Messages
4
Programming Experience
5-10
can u give me an example to how to do it

like when i load a form from stripmenu i use the following code

Dim LoadForm as new Frm(NameofForm)
LoadForm.show


in treeview how would it come.

thanks

PS. Sorry to be trouble you like this but looked everywhere and was not able to find a decent code in vb.net to help me with my code.
 

AGS

New member
Joined
Nov 6, 2010
Messages
4
Programming Experience
5-10
Sorry JohnH am lost. can you attach a code where it is running.
if possible just create a form with a treeview and another form and do the coding to open the form using treeview. appriciate your help in this.
 
Top Bottom