Results 1 to 7 of 7

Thread: [RESOLVED] [2005] Exit Event

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2008
    Posts
    1,754

    Resolved [RESOLVED] [2005] Exit Event

    Hello, is there a way to do some actions if the Red Exit button (top right corner of screen with the text X) was clicked. I want to do some actions if the user trys to close the program, because for my login form i cant have them exiting it then the program kind of corrupts.

  2. #2
    PowerPoster stanav's Avatar
    Join Date
    Jul 2006
    Location
    Providence, RI - USA
    Posts
    9,290

    Re: [2005] Exit Event

    Handle the formclosing event of your form. Looka at e.CloseReason to see why your form is being closed and perform appropriate action there. If you don't wnat it to close, set e.cancel = true.

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2008
    Posts
    1,754

    Re: [2005] Exit Event

    thankyou for you help, so i can type

    if me.formclosing = true then?

  4. #4
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: [2005] Exit Event

    Quote Originally Posted by noahssite
    thankyou for you help, so i can type

    if me.formclosing = true then?
    No. As stanav said, FormClosing is an Event which you need to handle.
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2008
    Posts
    1,754

    Re: [2005] Exit Event

    ok thankyou

  6. #6
    Frenzied Member obi1kenobi's Avatar
    Join Date
    Aug 2007
    Posts
    1,091

    Re: [2005] Exit Event

    If you don't have any more questions on this subject, you should mark the thread RESOLVED. Cheers!
    Please rate helpful ppl's posts. It's the best 'thank you' you can give

  7. #7

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2008
    Posts
    1,754

    Re: [RESOLVED] [2005] Exit Event

    There RESOLVED!!!!

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