Results 1 to 7 of 7

Thread: RESOLVED - prevent user from closing via taskbar icon

Threaded View

  1. #1

    Thread Starter
    PowerPoster BruceG's Avatar
    Join Date
    May 2000
    Location
    New Jersey (USA)
    Posts
    2,657

    Resolved RESOLVED - prevent user from closing via taskbar icon

    Hello,
    I have a VB2010 forms app running primarily on Win 7 boxes. In the app itself, programming is such that the user cannot exit the program without appropriate prompts (i.e. "are you sure", etc.) and form close buttons are disabled when appropriate, etc.
    However, if the user hovers over the program's icon on the task bar, and then hovers the resulting image, that image has a "red X" which they can click on and the app will close, no questions asked. Is there a way to prevent this behavior? (Setting "Show in Taskbar" to false is not an option as the app must show in the taskbar. The only other option I could think of was to code for the FormClosing event and test the CloseReason for each and every one of the numerous forms in this application, which seems cumbersome.)
    Your help is appreciated ...
    Thanks,
    Bruce
    Last edited by BruceG; Jun 30th, 2015 at 11:51 PM. Reason: resolved
    "It's cold gin time again ..."

    Check out my website here.

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