Click here to Skip to main content
15,888,610 members
Home / Discussions / C#
   

C#

 
GeneralRe: ListView with sub-lists Pin
Dave Kreskowiak28-Apr-04 5:17
mveDave Kreskowiak28-Apr-04 5:17 
GeneralRe: ListView with sub-lists Pin
Jon G28-Apr-04 5:26
Jon G28-Apr-04 5:26 
GeneralRe: ListView with sub-lists Pin
RNEELY28-Apr-04 6:15
RNEELY28-Apr-04 6:15 
GeneralRe: ListView with sub-lists Pin
Heath Stewart28-Apr-04 6:20
protectorHeath Stewart28-Apr-04 6:20 
GeneralRe: ListView with sub-lists Pin
Heath Stewart28-Apr-04 6:23
protectorHeath Stewart28-Apr-04 6:23 
GeneralRe: ListView with sub-lists Pin
Jon G28-Apr-04 6:31
Jon G28-Apr-04 6:31 
GeneralDetermining app close by User or Windows Pin
ABean28-Apr-04 4:03
ABean28-Apr-04 4:03 
GeneralRe: Determining app close by User or Windows Pin
Heath Stewart28-Apr-04 4:14
protectorHeath Stewart28-Apr-04 4:14 
Implement the IMessageFilter interface and add an instance of your implementation using Application.AddMessageFilter (this can degrade performance severely if not implemented correctly / efficiently). Watch for the WM_QUERYENDSESSION (0x0011, cancelable) or WM_ENDSESSION (0x0016).

Alternatively, you can override WndProc in your main application window (the form you pass to Application.Run, for example) and do the same thing.

Windows sends this message when shutting down. You can return false to attempt to prevent Windows from shutting down (it most likely will), or just return true and close your application or do whatever you need to.

 

Microsoft MVP, Visual C#
My Articles
GeneralStatic to Instance Pin
sreejith ss nair28-Apr-04 3:53
sreejith ss nair28-Apr-04 3:53 
GeneralRe: Static to Instance Pin
Colin Angus Mackay28-Apr-04 4:02
Colin Angus Mackay28-Apr-04 4:02 
GeneralRe: Static to Instance Pin
Heath Stewart28-Apr-04 4:09
protectorHeath Stewart28-Apr-04 4:09 
GeneralRe: Static to Instance Pin
Jeff Varszegi28-Apr-04 4:37
professionalJeff Varszegi28-Apr-04 4:37 
GeneralRe: Static to Instance Pin
Dave Kreskowiak28-Apr-04 4:17
mveDave Kreskowiak28-Apr-04 4:17 
GeneralRe: Static to Instance Pin
Jeff Varszegi28-Apr-04 4:35
professionalJeff Varszegi28-Apr-04 4:35 
Generallist as parameter (C++/C# interoperability) Pin
sharonz28-Apr-04 2:25
sharonz28-Apr-04 2:25 
GeneralRe: list as parameter (C++/C# interoperability) Pin
Heath Stewart28-Apr-04 3:56
protectorHeath Stewart28-Apr-04 3:56 
GeneralRe: list as parameter (C++/C# interoperability) Pin
sharonz28-Apr-04 4:22
sharonz28-Apr-04 4:22 
GeneralRe: list as parameter (C++/C# interoperability) Pin
Roman Rodov28-Apr-04 15:37
Roman Rodov28-Apr-04 15:37 
GeneralRe: list as parameter (C++/C# interoperability) Pin
sharonz28-Apr-04 20:57
sharonz28-Apr-04 20:57 
QuestionUnique integer from string? Pin
Nathan Ridley28-Apr-04 2:20
Nathan Ridley28-Apr-04 2:20 
AnswerRe: Unique integer from string? Pin
amatyasik28-Apr-04 3:46
amatyasik28-Apr-04 3:46 
AnswerRe: Unique integer from string? Pin
Heath Stewart28-Apr-04 3:53
protectorHeath Stewart28-Apr-04 3:53 
AnswerRe: Unique integer from string? Pin
Jeff Varszegi28-Apr-04 4:49
professionalJeff Varszegi28-Apr-04 4:49 
GeneralRe: Unique integer from string? Pin
Nathan Ridley28-Apr-04 17:57
Nathan Ridley28-Apr-04 17:57 
GeneralRe: Unique integer from string? Pin
Jeff Varszegi29-Apr-04 2:55
professionalJeff Varszegi29-Apr-04 2:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.