How to hide Application When openning ?
-
hi all, This is simple question..But I don't know.. I want to hide the C# Application when openning it. I applied in main Windows Form like this: private void Form1_Load(object sender, System.EventArgs e) { this.Hide(); } But Window is not HIDE.. can any body help? thanks in advance..
-
hi all, This is simple question..But I don't know.. I want to hide the C# Application when openning it. I applied in main Windows Form like this: private void Form1_Load(object sender, System.EventArgs e) { this.Hide(); } But Window is not HIDE.. can any body help? thanks in advance..
-
hi all, This is simple question..But I don't know.. I want to hide the C# Application when openning it. I applied in main Windows Form like this: private void Form1_Load(object sender, System.EventArgs e) { this.Hide(); } But Window is not HIDE.. can any body help? thanks in advance..
-
hi all, This is simple question..But I don't know.. I want to hide the C# Application when openning it. I applied in main Windows Form like this: private void Form1_Load(object sender, System.EventArgs e) { this.Hide(); } But Window is not HIDE.. can any body help? thanks in advance..
two ways 1. create one public procedure with any name say "LoadForm()" in that form and put all the code from load event to this procedure and instead of calling frm.show call frm.loadForm() 2. try this in activate event of the form write this.Hide();
-
hi all, This is simple question..But I don't know.. I want to hide the C# Application when openning it. I applied in main Windows Form like this: private void Form1_Load(object sender, System.EventArgs e) { this.Hide(); } But Window is not HIDE.. can any body help? thanks in advance..
Instead of putting this code in the Form.Load event, override the OnLoad method of your form and put it in there. You have much greater control over the form visibility that way. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
hi all, This is simple question..But I don't know.. I want to hide the C# Application when openning it. I applied in main Windows Form like this: private void Form1_Load(object sender, System.EventArgs e) { this.Hide(); } But Window is not HIDE.. can any body help? thanks in advance..
Probably the cleanest hack: Set the application to start minimized. Also specify that your application doesn't show in the taskbar. Alex Korchemniy