multiple forms problem

AccessShell

Member
Joined
Jun 14, 2016
Messages
21
Programming Experience
10+
From form1 I open another form (form2). I want to make form1 invisible. I can do that

But when I close form2, how do I get form1 visible again. I am not sure where to put the form1.visible = true code.

Thanks
 
You would create a handler for form2's FormClosed event in form1 and that is where you put the code to show form1 again. If you're creating an object dynamically then you would use AddHandler to attach the event handler. In that case, make sure to use RemoveHandler to detach it when you're done.
 
Back
Top