Question Many Form Leads to a Particular Form ,hot to Go back to Previos Form from current

nokia123

Active member
Joined
May 1, 2011
Messages
29
Programming Experience
Beginner
I have a menustrip, in which i have put a BACK option so that the user can go back directly from where he came to the current form ,as there are many form which leads to the that particular form .
Any suggestion Please .
 
Try declaring a public variable like this:

VB.NET:
Public BackForm As Form

Then when opening the back form from a different form use something like this:

VB.NET:
frmBack.Show()
frmBack.BackForm = Me

Hope this helps
-Josh
 
Forgot to mention, for the back button just use this:

VB.NET:
BackForm.Show()
Me.Close()

-Josh
 
Thank You . Problem Resolved :):)
Try declaring a public variable like this:

VB.NET:
Public BackForm As Form

Then when opening the back form from a different form use something like this:

VB.NET:
frmBack.Show()
frmBack.BackForm = Me

Hope this helps
-Josh
 
Sure thing!
 
Back
Top