Hello,
I am using Visual Basic.Net 2008 and in my main menu form I have a tree view
in one of the child node I have a code that opens another form.
Private Sub TreeView1_After Select(ByVal sender As System.Object, ByVal e As
System.Windows. Forms.TreeViewE ventArgs) Handles TreeView1.After Select
If e.Node.Name = "NodeUnassigned " Then
frmUnassigned.S how()
ElseIf e.Node.Name = "NodeDailyRepor ts" Then
frmDailyReports .Show()
End If
Now the form "NodeUnassigned " and "NodeDailyRepor ts" when pressed does show
the form, but soon as the form opens the "Main Menu" form appears I really
want to close the Main Menu form. How can I stop the "Main Menu" open up
again I just want to open the other form and close the Main Menu form? Does
anybody knows the code? Thank you in advance.
I am using Visual Basic.Net 2008 and in my main menu form I have a tree view
in one of the child node I have a code that opens another form.
Private Sub TreeView1_After Select(ByVal sender As System.Object, ByVal e As
System.Windows. Forms.TreeViewE ventArgs) Handles TreeView1.After Select
If e.Node.Name = "NodeUnassigned " Then
frmUnassigned.S how()
ElseIf e.Node.Name = "NodeDailyRepor ts" Then
frmDailyReports .Show()
End If
Now the form "NodeUnassigned " and "NodeDailyRepor ts" when pressed does show
the form, but soon as the form opens the "Main Menu" form appears I really
want to close the Main Menu form. How can I stop the "Main Menu" open up
again I just want to open the other form and close the Main Menu form? Does
anybody knows the code? Thank you in advance.
Comment