P
Paul Ilacqua
I am using a treeview to group and display a list of my applications
functionality. How can I take the results of the treeview and open a form
based on a lookup value.
I pass the e.Node.FullPath value from the TreeView1_AfterSelect event
with .....
Dim iPos As Integer = e.Node.FullPath.LastIndexOf("\")
Dim sPath As String = e.Node.FullPath
SelectedText = sPath.Substring(iPos + 1, sPath.Length - iPos - 1)
.... and derive the selected text from that. From that point I lookup the
"SelectedText" value in the datatable to come up with the form's string
name.
IE
Dim f as new SelectedText
I hope I made my question clear.
Paul
functionality. How can I take the results of the treeview and open a form
based on a lookup value.
I pass the e.Node.FullPath value from the TreeView1_AfterSelect event
with .....
Dim iPos As Integer = e.Node.FullPath.LastIndexOf("\")
Dim sPath As String = e.Node.FullPath
SelectedText = sPath.Substring(iPos + 1, sPath.Length - iPos - 1)
.... and derive the selected text from that. From that point I lookup the
"SelectedText" value in the datatable to come up with the form's string
name.
IE
Dim f as new SelectedText
I hope I made my question clear.
Paul