A
agro_r
When we use
Application.Run(new MyForm());
Our form is automatcally made visible. How can I make it start
invisibly (I want it to start just as a tray icon)?
I tried hiding in in the constructor. no use since the form is show
again by the Application.Run method.
I tried hiding it in the overriden OnLoad property. No effect.
I tried hiding it in the overriden OnActivated property. It succeeds,
but only after the form has flashed to the user for a fraction of a
second. That really isn't beautiful.
So, is there a nice way to do this?
Thanks a lot.
Application.Run(new MyForm());
Our form is automatcally made visible. How can I make it start
invisibly (I want it to start just as a tray icon)?
I tried hiding in in the constructor. no use since the form is show
again by the Application.Run method.
I tried hiding it in the overriden OnLoad property. No effect.
I tried hiding it in the overriden OnActivated property. It succeeds,
but only after the form has flashed to the user for a fraction of a
second. That really isn't beautiful.
So, is there a nice way to do this?
Thanks a lot.