User Profile

Collapse

Profile Sidebar

Collapse
uzbones
uzbones
Last Activity: Mar 28 '08, 08:15 PM
Joined: May 30 '07
Location: Indiana
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • uzbones
    replied to C#, Application does not terminate
    in .NET
    Yes the issue is that the threads are still running, or you want the 'X' method to use your 'Close' method that cleans stuff up. However stopping the application abruptly is a bad thing as it could have left things half done...

    A bit more browsing has brought me to this:
    Code:
            public const int SC_CLOSE = 0xF060;
            public const int WM_SYSCOMMAND = 0x0112;
    
            protected override void
    ...
    See more | Go to post
    Last edited by PRR; May 18 '09, 05:31 AM. Reason: Please post code in [code] [/code] tags.

    Leave a comment:


  • uzbones
    replied to C#, Application does not terminate
    in .NET
    I think what the OP is trying to say is that if you click on the 'X' using the ControlBox or use 'ALT-F4' key combination to close the main form, then the Form will directly call Application.Exi t() without going through any other validation. It will not use the Form.Closed(), Form.Closing() or any other method on its way out and they are obsolete in .NET v3 anyway.

    Does anybody know if the function they are calling can be overwritten?...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...