C# Unload Form. 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. Www.csscript.net) can load and unload assemblies, it is based on disposable.
108 you can subscribe to the window's loaded event and do your work in the event handler: Web how can i unload form1? The unload method gracefully shuts down the specified. If you want to unload both the forms then on load event of form2 you can use this code private void. Web sign in to vote. When a form is displayed as a modal dialog box,. Web you may find this interesting: Anyway, please check this thread c# unload and load form / hide and close. If you've created an application domain and want to unload all the assemblies loaded within, there is no way to unload assembly. 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 if you want to unload some assemblies but not others in a.net framework application, consider creating a new application domain, executing the code inside that. Public mywindow () { loaded +=. Static int x = 200; Anyway, please check this thread c# unload and load form / hide and close. Web if you want to unload some assemblies but not others in a.net framework application, consider creating a new application domain, executing the code inside that. If you've created an application domain and want to unload all the assemblies loaded within, there is no way to unload assembly. Www.csscript.net) can load and unload assemblies, it is based on disposable. (assuming you have a button called btnopenform, and a class called userform2, please change these to. Web 4 answers sorted by: 108 you can subscribe to the window's loaded event and do your work in the event handler: To open a form when a button is pressed.