Hide My Window Form
-
Hi guys i created one windows application its contained only one form..., In that form load event i said some operations have to run..., Its working cool..., But i dont like show the window form to enduser..., It mean no minimize of the form also, just the form load operations have to run thats all So i tried to hide that using this.hide(); methode in my form load event..., But its not getting hide..., how to hide my form window?
Thanks & Regards, NeW OnE, please don't forget to vote on the post
-
Hi guys i created one windows application its contained only one form..., In that form load event i said some operations have to run..., Its working cool..., But i dont like show the window form to enduser..., It mean no minimize of the form also, just the form load operations have to run thats all So i tried to hide that using this.hide(); methode in my form load event..., But its not getting hide..., how to hide my form window?
Thanks & Regards, NeW OnE, please don't forget to vote on the post
You can put your code in the constuctor instead of load so it runs before the loading takes place unless you need to access the form itself (or child controls) as it's handle won't be created yet so the object(s) will be unavailable.
Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) -
Hi guys i created one windows application its contained only one form..., In that form load event i said some operations have to run..., Its working cool..., But i dont like show the window form to enduser..., It mean no minimize of the form also, just the form load operations have to run thats all So i tried to hide that using this.hide(); methode in my form load event..., But its not getting hide..., how to hide my form window?
Thanks & Regards, NeW OnE, please don't forget to vote on the post
If your only purpose is to execute a piece of code and not to show any window, you can simply delete the form and put your code in Main method. Open Program.cs file and under main function comment out line which shows the form, and put your code. Such as – --------------------------------- static class Program { /// /// The main entry point for the application. /// [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); //Application.Run(new Form1()); MessageBox.Show("Test"); } } --------------------- I hope this helps. -Dave. -------------------------------- www.componentone.com --------------------------------
------------------------------------ http://www.componentone.com ------------------------------------
-
Hi guys i created one windows application its contained only one form..., In that form load event i said some operations have to run..., Its working cool..., But i dont like show the window form to enduser..., It mean no minimize of the form also, just the form load operations have to run thats all So i tried to hide that using this.hide(); methode in my form load event..., But its not getting hide..., how to hide my form window?
Thanks & Regards, NeW OnE, please don't forget to vote on the post
You could set the forms opacity to 0
Regards, Thomas Stockwell Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. Visit my homepage Oracle Studios Discounted or Free Software for Students: DreamSpark - downloads.channel8.msdn.com MSDN Academic Alliance - www.msdnaa.com