Results 1 to 3 of 3

Thread: upper right corner close button

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2004
    Posts
    34

    upper right corner close button

    How do I detect if that button is clicked on a form (cross button)


    thx !


    6f6

  2. #2
    Frenzied Member Mike Hildner's Avatar
    Join Date
    Jul 2002
    Location
    Des Moines, NM
    Posts
    1,690
    The form's closing event gets raised. Is that what you want? If you want to prevent the form from closing, you can set your CancelEventArgs e to True.

  3. #3
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373
    I think he means how can he tell if that button was clicked versus lets say windows shutting down the program because windows itself is shutting down, or its shutting down because code told it to

    there is code to determine if its closing because the X was clicked.. search the VB.NET forum for QueryUnload because that is the feature of VB6 that is not present in .NET, and I know this was asked before

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