Dear Friends,
If i am using me.close() on click event, i cant open the same form once again. If i am not using me.close(), on revisiting same page, pageload event is
not happening. In this case how can we handle.
Ultimately on revisiting, page load event should happen. Please help me.
eg:
Form 1 (frmAdminMenu)
' Sub menu form will be shown on btnAdmin click event
Private Sub btnAdmin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdmin.Click
frmSubMenu.Show()
me.close()
End Sub
Form 2 (frmSubMenu)
' Admin Menu is not opening as i had used me.close() in Form 1
Private Sub btnSub_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSub.Click
frmAdminMenu.Show()
me.close()
End Sub
Regards,
Jayan
If i am using me.close() on click event, i cant open the same form once again. If i am not using me.close(), on revisiting same page, pageload event is
not happening. In this case how can we handle.
Ultimately on revisiting, page load event should happen. Please help me.
eg:
Form 1 (frmAdminMenu)
' Sub menu form will be shown on btnAdmin click event
Private Sub btnAdmin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdmin.Click
frmSubMenu.Show()
me.close()
End Sub
Form 2 (frmSubMenu)
' Admin Menu is not opening as i had used me.close() in Form 1
Private Sub btnSub_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSub.Click
frmAdminMenu.Show()
me.close()
End Sub
Regards,
Jayan