I want to do exactly what the example I linked to does. I want to have two forms and be able to switch back and forth between the two forms progmatically.
I have FORM1 that has a BUTTON1 that opens FORM2. If the person hits BUTTON1 a second time it should set the focus to FORM2 if it has not been closed. If FORM2 does not exist, it opens a new instance of FORM2. I should never have more than 1 instance of any form open.
I don't have any code that works yet, because I have not figured out how to do it.
All the code I have tried from my books makes a new instance of the form each time. Then I tried this web example and it does not work. When I open a form class, it says public partial class Form1 : Form
The example from the website does not say partial. So I don't know if that was an earlier version of visual studio or what. I am using VS 2005.