Click here to Skip to main content
15,897,273 members
Home / Discussions / C#
   

C#

 
GeneralRe: Minimizing a form Pin
eggie523-Sep-04 2:16
eggie523-Sep-04 2:16 
GeneralPlease Help Pin
exhaulted22-Sep-04 23:13
exhaulted22-Sep-04 23:13 
GeneralRe: Please Help Pin
sreejith ss nair23-Sep-04 1:35
sreejith ss nair23-Sep-04 1:35 
GeneralRe: Please Help Pin
exhaulted23-Sep-04 3:09
exhaulted23-Sep-04 3:09 
GeneralRe: Please Help Pin
sreejith ss nair23-Sep-04 3:24
sreejith ss nair23-Sep-04 3:24 
GeneralRe: Please Help Pin
Stefan Troschuetz23-Sep-04 3:39
Stefan Troschuetz23-Sep-04 3:39 
GeneralRe: Please Help Pin
Stefan Troschuetz23-Sep-04 3:44
Stefan Troschuetz23-Sep-04 3:44 
GeneralRe: Please Help Pin
exhaulted23-Sep-04 4:00
exhaulted23-Sep-04 4:00 
Hi stefan, thanks for all your help in this, if i ever get it sorted i'll email you the code so you can see it running Smile | :)

The following sounds promising, i'll give it a go
If you are using SessionEnding in a Windows form to detect a system logoff or reboot,
there is no deterministic way to decide whether the
System.Windows.Forms.Form.Closing event will fire before this event.

If you want to perform some special tasks before System.Windows.Forms.Form.Closing is fired,
you need to ensure that SessionEnding fires before System.Windows.Forms.Form.Closing.
To do this, you need to trap the WM_QUERYENDSESSION in the form by
overriding the WndProc function. The following example demonstrates
how to do this in a deterministic way,


Kev
GeneralRe: Please Help Pin
Stefan Troschuetz23-Sep-04 4:11
Stefan Troschuetz23-Sep-04 4:11 
GeneralRe: Please Help Pin
exhaulted23-Sep-04 5:37
exhaulted23-Sep-04 5:37 
Generallast focusd event Pin
Sakkijha22-Sep-04 23:12
Sakkijha22-Sep-04 23:12 
GeneralRe: last focusd event Pin
Dave Kreskowiak23-Sep-04 0:29
mveDave Kreskowiak23-Sep-04 0:29 
GeneralRe: last focusd event Pin
sreejith ss nair23-Sep-04 0:44
sreejith ss nair23-Sep-04 0:44 
Generalabout conecting c# with oracle database Pin
ydderf222-Sep-04 21:14
ydderf222-Sep-04 21:14 
GeneralRe: about conecting c# with oracle database Pin
Heath Stewart22-Sep-04 22:00
protectorHeath Stewart22-Sep-04 22:00 
GeneralUsing C# treeview of compact framework problem Pin
ting66822-Sep-04 20:54
ting66822-Sep-04 20:54 
GeneralCasting A String to a control Pin
Nick Price22-Sep-04 13:37
Nick Price22-Sep-04 13:37 
GeneralRe: Casting A String to a control Pin
Xenther22-Sep-04 13:40
Xenther22-Sep-04 13:40 
GeneralRe: Casting A String to a control Pin
Nick Parker22-Sep-04 14:47
protectorNick Parker22-Sep-04 14:47 
GeneralRe: Casting A String to a control Pin
Nick Price23-Sep-04 6:24
Nick Price23-Sep-04 6:24 
GeneralRichTextBox and MemoryFonts Pin
Xenther22-Sep-04 13:19
Xenther22-Sep-04 13:19 
Generalsimple puzzle Pin
teefa_IT22-Sep-04 12:42
teefa_IT22-Sep-04 12:42 
GeneralRe: simple puzzle Pin
Nick Parker22-Sep-04 13:18
protectorNick Parker22-Sep-04 13:18 
GeneralRe: simple puzzle Pin
mav.northwind22-Sep-04 20:33
mav.northwind22-Sep-04 20:33 
GeneralChanging the Mouse Cursor Pin
MarkMokris22-Sep-04 12:13
MarkMokris22-Sep-04 12:13 

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.