How to open a form in hidden mode?

  • Thread starter Thread starter Veera.CH
  • Start date Start date
V

Veera.CH

Hi all,
How can an windows form be started in hidden mode?
My problem is I've setup a load event handler where I'm setting
this.Visible = false and calling base.OnLoad(). I noticed calling
base.OnLoad() is setting visibility to true for the frame. I tried to
peek in to Windows.Forms assembly using Reflector. There I found the
visibility is set to true (hard-coded).
Any help is appreciated.

Thanks,
Venkat
 
Hi all,
How can an windows form be started in hidden mode?
My problem is I've setup a load event handler where I'm setting
this.Visible = false and calling base.OnLoad(). I noticed calling
base.OnLoad() is setting visibility to true for the frame. I tried to
peek in to Windows.Forms assembly using Reflector. There I found the
visibility is set to true (hard-coded).
Any help is appreciated.


You may try to set the Form size to (0,0) or move the Form to an
invisible location,e.g (-10000,-10000). The effect is same to set the
Form "Visible = false".
 
Back
Top