I have a toolstrip in a template. The various buttons link to the other forms in the application that have inherited the toolstrip. My problem is that when the buttons link to other forms using the ShowDialog() and they have been opened previously, I get the error that I'm attempting to open a form that is already open. What code do I use to make sure the form is closed before it attempts to open it again. I thought the .Visible = False was what I should set, before the ShowDialog(), but no.
What approach should I use, how do you close a form when it links to another form. There's no need to have more than one form open at a time. I'm certain this is elementary. Thank you.
What approach should I use, how do you close a form when it links to another form. There's no need to have more than one form open at a time. I'm certain this is elementary. Thank you.