Start form minimized to tray?

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



Answer this question

Start form minimized to tray?