form unload

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • phonl

    #1

    form unload

    How do I cancel the unloading of a form in VB.NET 2005?

    In VB6 I would use "Cancel" in "QueryUnloa d" event. Also, is there an
    "UnloadMode " parameter in VB.NET?



  • Herfried K. Wagner [MVP]

    #2
    Re: form unload

    "phonl" <phonl@newsgrou ps.nospam> schrieb:[color=blue]
    > How do I cancel the unloading of a form in VB.NET 2005?
    >
    > In VB6 I would use "Cancel" in "QueryUnloa d" event. Also, is there an
    > "UnloadMode " parameter in VB.NET?[/color]

    Handle the form's 'Closing' event and set 'e.Cancel' to 'True'. In
    addition, check out the form's 'FormClosing' event, specifically its 'e'
    parameter.

    --
    M S Herfried K. Wagner
    M V P <URL:http://dotnet.mvps.org/>
    V B <URL:http://classicvb.org/petition/>

    Comment

    Working...