Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dispose function in form
Message
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Versions des environnements
Environment:
C# 3.0
OS:
Vista
Database:
Visual FoxPro
Divers
Thread ID:
01457977
Message ID:
01457984
Vues:
42
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform