Click here to Skip to main content
15,917,005 members
Home / Discussions / C#
   

C#

 
Generalremoting : singleton vs singlecall Pin
Anonymous28-Apr-04 5:57
Anonymous28-Apr-04 5:57 
GeneralRe: remoting : singleton vs singlecall Pin
Heath Stewart28-Apr-04 6:27
protectorHeath Stewart28-Apr-04 6:27 
Questionhow do i loop controls on webpage Pin
robmays28-Apr-04 5:25
robmays28-Apr-04 5:25 
AnswerRe: how do i loop controls on webpage Pin
Heath Stewart28-Apr-04 6:25
protectorHeath Stewart28-Apr-04 6:25 
GeneralRe: how do i loop controls on webpage Pin
robmays28-Apr-04 8:15
robmays28-Apr-04 8:15 
GeneralSplitted forms and selection Pin
Gian28-Apr-04 5:17
Gian28-Apr-04 5:17 
GeneralRe: Splitted forms and selection Pin
Heath Stewart28-Apr-04 6:24
protectorHeath Stewart28-Apr-04 6:24 
GeneralListView with sub-lists Pin
Jon G28-Apr-04 4:54
Jon G28-Apr-04 4:54 
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 

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.