Hello
I want to start my application minimized to tray and only minimized to tray. I have been trying several approaches:
- setting the Visible-property to false after component initialisation
- calling the Hide()-function
- raising an event that calls the Hide()-function if the form is visible
None of these have worked. By the way in my main()-function I am creating my form like this:
Application.Run(new Form1());
I also tried
Form1 aForm1 = new Form1();
aForm1.Visible = false; // or aForm1.Hide();
Application.Run(aForm1);
Didn't work either.
Any help would be much appreciated.
Sincerely
Peregrin

Start form minimized to tray?
Damien fromOZ
Override the form's OnLoad method and Hide it there.
chakravarthy_b
Peregrin, maybe you'll find this link helpful: http://www.windowsforms.net/articles/notifyiconapplications.aspx
Ashish