Results 1 to 2 of 2

Thread: closing app when logging off

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2002
    Location
    Norwich, UK
    Posts
    405

    closing app when logging off

    I have an app that sits in the system tray.
    My problem is that when a user logs off when the app is still running, because the app is still running, they can't log off.

    Is there a way in my app, to close the app when someone is logging off?

    any help would be appreciated.

  2. #2
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367

    Re: closing app when logging off

    This is probably happening because you set e.Cancel = True always in your Form_Closing event. You need to determine why you are closing (user or system) and if it is the system, let it close gracefully.

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