C
CAM
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_AfterSelect(ByVal sender As System.Object, ByVal e As
System.Windows.Forms.TreeViewEventArgs) Handles TreeView1.AfterSelect
If e.Node.Name = "NodeUnassigned" Then
frmUnassigned.Show()
ElseIf e.Node.Name = "NodeDailyReports" Then
frmDailyReports.Show()
End If
Now the form "NodeUnassigned" and "NodeDailyReports" 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_AfterSelect(ByVal sender As System.Object, ByVal e As
System.Windows.Forms.TreeViewEventArgs) Handles TreeView1.AfterSelect
If e.Node.Name = "NodeUnassigned" Then
frmUnassigned.Show()
ElseIf e.Node.Name = "NodeDailyReports" Then
frmDailyReports.Show()
End If
Now the form "NodeUnassigned" and "NodeDailyReports" 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.