Leave a Reply Cancel reply Your email address will not be published. Share via. Copy Link. Powered by Social Snap. Copy link. In the above code, we closed the form in our Windows Form application that only consists of one form with the Application.
Exit function in C. The only drawback with this approach is that the Application. Exit function exits the whole application. So, if the application contains more than one form, all the forms will be closed. The Form. Prior to the. NET Framework 2. Closed and Form. Closing events are not raised when the Application. Exit method is called to exit your application.
If you have validation code in either of these events that must be executed, you should call the Form. Close method for each open form individually before calling the Exit method. Skip to main content. Social Twitter Facebook. Legal Privacy Policy Terms. Register to vote on and add code examples. Join our developer community to improve your dev skills and code like a boss!
0コメント