Hi all,
I have a treeview control on a form that has code like:
--------------
Dim nodX As Node
Set nodX = TreeView1.Nodes.Add(, , "AA", "Welcome"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Set nodX = TreeView1.Nodes.Add("AA", tvwChild, "C1", "Import Mapping"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Set nodX = TreeView1.Nodes.Add("C1", tvwChild, "C10", "Unit"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Set nodX = TreeView1.Nodes.Add("C1", tvwChild, "C11", "Account"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
--------------
All I am trying to do is show a picture box based on the node chosen. For instance if the user clicks on the node "UNIT" which has key C10, then I want to show a specific picture box. I can't seem to figure out how to do this. I would like to use the CASE syntax to make this happen.
Any ideas are greatly appreciated.
Regards,
Mike
I have a treeview control on a form that has code like:
--------------
Dim nodX As Node
Set nodX = TreeView1.Nodes.Add(, , "AA", "Welcome"
Set nodX = TreeView1.Nodes.Add("AA", tvwChild, "C1", "Import Mapping"
Set nodX = TreeView1.Nodes.Add("C1", tvwChild, "C10", "Unit"
Set nodX = TreeView1.Nodes.Add("C1", tvwChild, "C11", "Account"
--------------
All I am trying to do is show a picture box based on the node chosen. For instance if the user clicks on the node "UNIT" which has key C10, then I want to show a specific picture box. I can't seem to figure out how to do this. I would like to use the CASE syntax to make this happen.
Any ideas are greatly appreciated.
Regards,
Mike