I have a form1 that I run with Application.Run.
I want to hide this form (I need it hidden because I run some things in the background, so they must execute) and open another form for a log-in.
The way I am trying this is by executing in my form1 constructor the command this.Hide(); and if log in is successful, show my form1, but it doesn’t seem to work. Any ideas?
Just override the OnVisibleChanged method and change the visibility of the form in there, something like this:
And that’s it! Simple and clean.