Results 1 to 3 of 3

Thread: [RESOLVED] Events trigger when computer is shutding down

  1. #1

    Thread Starter
    Fanatic Member daimous's Avatar
    Join Date
    Aug 2005
    Posts
    657

    Resolved [RESOLVED] Events trigger when computer is shutding down

    Hi guys...What event is tiggered when windows is shutting down? Because I have a application where in when the FormClosing event is triggered it does not close but hide it self and the problem is when I shutdown/Logoff my computer while the form is hidden my computer wont shutdown but when i actually exit or dispose the application my computer will shuts down.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Events trigger when computer is shutding down

    This is VB but you should have no issue applying the principle to C#.

    http://www.vbforums.com/showthread.php?t=454466
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Fanatic Member daimous's Avatar
    Join Date
    Aug 2005
    Posts
    657

    Re: Events trigger when computer is shutding down

    Thanks a lot Jm.

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