Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dispose function in form
Message
General information
Forum:
ASP.NET
Category:
ADO.NET
Environment versions
Environment:
C# 3.0
OS:
Vista
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01457977
Message ID:
01457984
Views:
41
>How do I get to the Windows Form's closing event? I know how to find events, but cannot figure out what is meant by finding the form's closing event, since there is no event that says, "Closing" in the methods or events. The line of code is: publishContext.Dispose(). I tried FormClosing, but that is not it. There is no Unload event, so where do I go from here? See, this C# world is so much fun.
>
>So, maybe I should double-click on the FormClosing event? Okay, I'll try that. Yes, I do talk to myself.

The only think close to that I have found is to define a method manually and assign it to your close button as well as assigning the Form CancelButton property to it:
    Private Sub Button1_Quit(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnQuit.Click
        CloseForm()
    End Sub

    Private Sub CloseForm()
        Close()
    End Sub
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform