Results 1 to 3 of 3

Thread: problem if use click at 'X' at the window form

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2004
    Posts
    108

    problem if use click at 'X' at the window form

    problem if use click at 'X' at the window form

    how can i get the value after the user click at 'X' at the window form

    when the user click at 'X' i want to pop up a message to remid the user they want to close the application or not

    how can i get the value ???

    thanx for helping

  2. #2
    Frenzied Member
    Join Date
    Feb 2003
    Location
    Argentina
    Posts
    1,950
    There's an event for that, forget which one, Closing maybe? Or you could get rid of the X button and provide an exit button of your own.

  3. #3
    Hyperactive Member
    Join Date
    Mar 2004
    Location
    Prato - Tuscany - Italy
    Posts
    461
    Salvelinus was right, closing event is the right one. Then if you want to stop closing you have to use:

    e.Cancel = True

    Good job
    Live long and prosper (Mr. Spock)

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