In node click event, depending on the node caption , call the form..
Something like this :
[code=vb]
If TrVw.SelectedIt em.Text = "Customers" Then
frmCustomers.Sh ow
Elseif TrVw.SelectedIt em.Text = "Orders" Then
frmOrders.Show
End If
[/code]
In node click event, depending on the node caption , call the form..
Something like this :
Expand|Select|W rap|Line Numbers
If TrVw.SelectedIt em.Text = "Customers" Then
frmCustomers.Sh ow
Elseif TrVw.SelectedIt em.Text = "Orders" Then
frmOrders.Show
End If
REgards
Veena
where can I find node event???
Do I have to declare some variable because i got this error on the first line
"object variable or with block variable not set"
On your Form, Double Click the TreeView, and from event's list, Select the NodeClick event..
From my code, change the name of Control Treeview , Give your control name accordingly..
On your Form, Double Click the TreeView, and from event's list, Select the NodeClick event..
From my code, change the name of Control Treeview , Give your control name accordingly..
Regards
Veena
Thanks you so much... it works...
How to put image on the treeview??/
how to initialize
Add an ImageList Control to your Form.
Add All the Images,
Select Treeview's Property : ImageList = ImageList1
Now when you add nodes, To Set 4th Image in Image List :
Give this syntax:
Add an ImageList Control to your Form.
Add All the Images,
Select Treeview's Property : ImageList = ImageList1
Now when you add nodes, To Set 4th Image in Image List :
Give this syntax:
Comment