Skip to main content

File Handling: Form Closing Event

Tutorial is a continuation of our previous topic called “File Handling: Adding a Save As Command”. But this time we’re going to focus on how to use the form closing event in visual basic. Basically FormClosing event occurs when the user click the close button and the form is being closed. When the form is closed, it releases all the associated resources with the form. To start with this application lets open first our last project called “FileHandling”. Then at the code view window, go to a class name and choose the (Form1 events) then FormClosing for Method name. And this looks like as

Add new comment