Before anything I'm really new to C# / Visual Studio / GUIs, so I can't even ask my questions correctly... -What the "x" button of a window/form is called? X Button? -Can I hide it (but not the whole top bar)? -Can I hide only a few of the top buttons, like X and _ ?
I have the following things in my 'testapp'
- Form1 with button1.
- Form2 with a label and button2.
Button1, when clicked, checks if theres already a Form2 object (using the Application.OpenForms("Form2") something like that).
If there is, then show it AND hide form1. If there isn't, create 1, show it AND hide form1.
Button2 when clicked, gets a reference to Form1 (using the Application.OpenForms("Form2") something like that), shows it AND hide form2.
But if the user closes the form2 using the "x" my app continues to run (because the mainForm still running, but hidden). I'd like to 'override the x button' to make it show form1, then hide/close the form2.
How can I do that?