Results 1 to 3 of 3

Thread: QueryUnload

  1. #1

    Thread Starter
    Frenzied Member vbgladiator's Avatar
    Join Date
    May 2001
    Posts
    1,950

    QueryUnload

    Hi,

    In vb6 I used QueryUnload event to determine how the form was being closed. I could act depending on the argument's value.

    Is there an equivalent in VB.NET?

    I know there is Closing event buy that doesn't indicate how the form is being closed.

    Thanks,
    Don't anthropomorphize computers -- they hate it

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    You should try a search:
    http://www.vbforums.com/search.php?s...der=descending

    Two of those have good answers.

  3. #3
    Frenzied Member dynamic_sysop's Avatar
    Join Date
    Jun 2003
    Location
    Ashby, Leicestershire.
    Posts
    1,142
    VB Code:
    1. Private Sub Form1_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
    2.  
    3.         MsgBox(e.Cancel.GetTypeCode.ToString)
    4.         '///e.Cancel.GetTypeCode gives the type of close event
    5.     End Sub
    ~
    if a post is resolved, please mark it as [Resolved]
    protected string get_Signature(){return Censored;}
    [vbcode][php] please use code tags when posting any code [/php][/vbcode]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width