C# Unload Form. We are trying to better. Web to run the example, paste the following code in a form called form1 containing a button called button1 and two label controls called label1 and label2.
Web 1 you can use usercontrol.dispose () as documented here: Web sign in to vote. Anyway, please check this thread c# unload and load form / hide and close. The unload method gracefully shuts down the specified. Static int x = 200; Personally, i would go for the formclosing event because the. Web to cancel the closure of a form, set the cancel property of the formclosingeventargs passed to your event handler to true. Web you should ask to a windows form forum or a c# forum. Web to run the example, paste the following code in a form called form1 containing a button called button1 and two label controls called label1 and label2. Web 4 answers sorted by:
If i put form1.close, it will close everything.:(in vb, i only have to put call form2.show call unload(form1) i'm new in c#, so could someone. Web do you want to unload only form1 or form2 as well? Web 4 answers sorted by: So, you will need at least 2 domains (default + one more) and a lot of code that you don't need for. Web how can i unload form1? If i put form1.close, it will close everything.:(in vb, i only have to put call form2.show call unload(form1) i'm new in c#, so could someone. 3 this.refresh ();,this.invalidate ();,form.refresh (),form.invalidate () these functions just tell the window manager to redraw the form. Www.csscript.net) can load and unload assemblies, it is based on disposable. Look at the form.formclosing event [ ^] or override the dispose method and do it there. The unload method gracefully shuts down the specified. Web 4 answers sorted by: