G
g
Hi,
I have a treeView in my form that works fine but I wanted to add an event
that nodes should expand one at a time. Meaning if 1 of the nodes selected
(HOSP1)it will expand the child nodes normally but if another nodes (HOSP2)
selected it should collapse the first nodes(HOSP1) selected automatically.
objTree.Nodes.Add , , "A", "Main Menu", "frame"
objTree.Nodes.Add "A", tvwChild, "A1", "HOSP1", "frame"
objTree.Nodes.Add "A1", tvwChild, "A21", "Add Record", "form"
objTree.Nodes("A21").Tag = "frmAdd"
objTree.Nodes.Add "A", tvwChild, "B1", "HOSP2", "frame"
objTree.Nodes.Add "B1", tvwChild, "B21", "Add Record", "form"
objTree.Nodes("B21").Tag = "frmAdd"
The reason I need this because I need to asign a value in main form
Me.MainForm.Site depending on what they selected HOSP1 or HOSP2.
If HOSP1 the site = 1 if HOSP 2 the site = 2.
Thank you
I have a treeView in my form that works fine but I wanted to add an event
that nodes should expand one at a time. Meaning if 1 of the nodes selected
(HOSP1)it will expand the child nodes normally but if another nodes (HOSP2)
selected it should collapse the first nodes(HOSP1) selected automatically.
objTree.Nodes.Add , , "A", "Main Menu", "frame"
objTree.Nodes.Add "A", tvwChild, "A1", "HOSP1", "frame"
objTree.Nodes.Add "A1", tvwChild, "A21", "Add Record", "form"
objTree.Nodes("A21").Tag = "frmAdd"
objTree.Nodes.Add "A", tvwChild, "B1", "HOSP2", "frame"
objTree.Nodes.Add "B1", tvwChild, "B21", "Add Record", "form"
objTree.Nodes("B21").Tag = "frmAdd"
The reason I need this because I need to asign a value in main form
Me.MainForm.Site depending on what they selected HOSP1 or HOSP2.
If HOSP1 the site = 1 if HOSP 2 the site = 2.
Thank you