Click here to Skip to main content
15,896,154 members
Home / Discussions / C#
   

C#

 
GeneralRe: Barcode standards Pin
Michael P Butler1-Nov-04 23:42
Michael P Butler1-Nov-04 23:42 
GeneralError:Unable to loas DLL (Setupapi.lib) Pin
momer1-Nov-04 20:20
momer1-Nov-04 20:20 
GeneralRe: Error:Unable to loas DLL (Setupapi.lib) Pin
Corinna John1-Nov-04 21:02
Corinna John1-Nov-04 21:02 
GeneralEnd task problem Pin
Anonymous1-Nov-04 19:33
Anonymous1-Nov-04 19:33 
GeneralRe: End task problem Pin
Luis Alonso Ramos1-Nov-04 19:44
Luis Alonso Ramos1-Nov-04 19:44 
GeneralRe: End task problem Pin
Anonymous1-Nov-04 21:17
Anonymous1-Nov-04 21:17 
GeneralRe: End task problem Pin
Stefan Troschuetz1-Nov-04 22:42
Stefan Troschuetz1-Nov-04 22:42 
GeneralRe: End task problem Pin
exhaulted1-Nov-04 23:09
exhaulted1-Nov-04 23:09 
I don't know if it will work or not but you can try overriding the wndProc and intercepting the shutdown message that windows sends to your app.

There is a message called WM_QUERYENDSESSION
protected override void WndProc(ref Message m)
{
   if (m.Msg == 0x0011)
   {
      //Do something here to re-open your app?
   }
   base.WndProc (ref m);
}


I don't know how you can stop it closing from there but you could
always re-open your app.

You will have to check that WM_QUERYENDSESION is the message that is called though. If it's not then try searching through the windows header files, one of them has a list of different messages.

Hope this helps.Big Grin | :-D

Kev
GeneralRe: End task problem Pin
Dave Kreskowiak2-Nov-04 0:58
mveDave Kreskowiak2-Nov-04 0:58 
GeneralCrystal web reports Pin
totig1-Nov-04 19:32
totig1-Nov-04 19:32 
Generalproxy implementation in chat client Pin
Kamran Zafar1-Nov-04 19:06
Kamran Zafar1-Nov-04 19:06 
GeneralRe: proxy implementation in chat client Pin
leppie2-Nov-04 0:08
leppie2-Nov-04 0:08 
Questionhow to use the same variable in c#, in HTML Pin
Jug-Head1-Nov-04 18:40
Jug-Head1-Nov-04 18:40 
QuestionWhat is the difference between the sorting methods of ArrayList Class? Pin
ting6681-Nov-04 17:17
ting6681-Nov-04 17:17 
AnswerRe: What is the difference between the sorting methods of ArrayList Class? Pin
Salil Khedkar1-Nov-04 18:52
Salil Khedkar1-Nov-04 18:52 
GeneralDataGrid Pin
Luis Alonso Ramos1-Nov-04 12:35
Luis Alonso Ramos1-Nov-04 12:35 
GeneralRe: DataGrid Pin
Heath Stewart1-Nov-04 14:09
protectorHeath Stewart1-Nov-04 14:09 
GeneralRe: DataGrid Pin
Luis Alonso Ramos1-Nov-04 14:43
Luis Alonso Ramos1-Nov-04 14:43 
GeneralRe: DataGrid Pin
Heath Stewart1-Nov-04 14:48
protectorHeath Stewart1-Nov-04 14:48 
GeneralRe: DataGrid Pin
Luis Alonso Ramos1-Nov-04 15:11
Luis Alonso Ramos1-Nov-04 15:11 
GeneralRe: DataGrid Pin
Heath Stewart1-Nov-04 15:31
protectorHeath Stewart1-Nov-04 15:31 
GeneralRe: DataGrid Pin
Luis Alonso Ramos1-Nov-04 15:59
Luis Alonso Ramos1-Nov-04 15:59 
GeneralRe: DataGrid Pin
Heath Stewart2-Nov-04 4:40
protectorHeath Stewart2-Nov-04 4:40 
GeneralRe: DataGrid Pin
Luis Alonso Ramos2-Nov-04 6:14
Luis Alonso Ramos2-Nov-04 6:14 
GeneralRe: DataGrid Pin
Heath Stewart2-Nov-04 6:46
protectorHeath Stewart2-Nov-04 6:46 

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.