Threre are many ways to accomplish the same. One of many: make a public string variable then use if as flag. For instance, you open form1 and within load event you can pass the name of the form to the variable i.e. myLastForm = "Form1" When you open 2nd form just add the back button and join these lines:
(*** dude i am a bit lazy for explanation ... please taka a look at the attached project below ***)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.