Click here to Skip to main content
15,890,336 members
Home / Discussions / C#
   

C#

 
GeneralRe: Check if a windows service is installed Pin
Mazdak16-Apr-03 4:42
Mazdak16-Apr-03 4:42 
GeneralRe: Check if a windows service is installed Pin
AndyLatham16-Apr-03 5:04
AndyLatham16-Apr-03 5:04 
GeneralRe: Check if a windows service is installed Pin
sludgenz29-Oct-08 16:22
sludgenz29-Oct-08 16:22 
GeneralRe: Check if a windows service is installed Pin
AnnDunbar19-Jan-09 4:55
AnnDunbar19-Jan-09 4:55 
GeneralTerminate C# app at system shutdown Pin
pahlsson15-Apr-03 22:19
pahlsson15-Apr-03 22:19 
GeneralRe: Terminate C# app at system shutdown Pin
perlmunger16-Apr-03 6:07
perlmunger16-Apr-03 6:07 
GeneralRe: Terminate C# app at system shutdown Pin
pahlsson16-Apr-03 6:10
pahlsson16-Apr-03 6:10 
GeneralRe: Terminate C# app at system shutdown Pin
perlmunger16-Apr-03 6:56
perlmunger16-Apr-03 6:56 
I hate to say it, but that's just weird. I have a similar app except minimize (rather than close) puts it in the tray and it doesn't seem to have any problem at all. So there may be something about the OnClosing method that I'm not aware of. Does your code look like this?:
protected void OnClosing(CancelEventArgs e)
{
     // Call the base implementation.
     base.OnClosing(e);

     // Set the Cancel property of the CancelEventArgs to true.
     e.Cancel = true;

     // Minimize the form here.
     this.WindowState = FormWindowState.Minimized;

     // That's all.
     return;
}


-Matt

------------------------------------------

The 3 great virtues of a programmer:
Laziness, Impatience, and Hubris.
--Larry Wall
GeneralRe: Terminate C# app at system shutdown Pin
Jon Newman16-Apr-03 6:31
Jon Newman16-Apr-03 6:31 
GeneralRe: Terminate C# app at system shutdown Pin
James T. Johnson16-Apr-03 7:12
James T. Johnson16-Apr-03 7:12 
GeneralRe: Terminate C# app at system shutdown Pin
pahlsson16-Apr-03 7:17
pahlsson16-Apr-03 7:17 
GeneralRe: Terminate C# app at system shutdown Pin
pahlsson16-Apr-03 7:21
pahlsson16-Apr-03 7:21 
QuestionDirectory Dialog Box?? Pin
bania15-Apr-03 15:17
bania15-Apr-03 15:17 
AnswerRe: Directory Dialog Box?? Pin
Chris Austin15-Apr-03 18:54
Chris Austin15-Apr-03 18:54 
AnswerRe: Directory Dialog Box?? Pin
chito15-Apr-03 22:09
chito15-Apr-03 22:09 
AnswerRe: Directory Dialog Box?? Pin
Mazdak16-Apr-03 2:59
Mazdak16-Apr-03 2:59 
GeneralChange title bar color (or menu) Pin
mirano15-Apr-03 13:59
mirano15-Apr-03 13:59 
GeneralRe: Change title bar color (or menu) Pin
Chris Jobson15-Apr-03 23:06
Chris Jobson15-Apr-03 23:06 
GeneralRe: Change title bar color (or menu) Pin
mirano15-Apr-03 23:34
mirano15-Apr-03 23:34 
GeneralUnreachable Code Detected Pin
vinkoval15-Apr-03 12:43
vinkoval15-Apr-03 12:43 
GeneralRe: Unreachable Code Detected Pin
James T. Johnson15-Apr-03 13:27
James T. Johnson15-Apr-03 13:27 
GeneralRe: Unreachable Code Detected Pin
vinkoval15-Apr-03 18:52
vinkoval15-Apr-03 18:52 
GeneralRe: Unreachable Code Detected Pin
James T. Johnson15-Apr-03 19:01
James T. Johnson15-Apr-03 19:01 
GeneralSystem.Type usage Pin
S O S15-Apr-03 9:34
S O S15-Apr-03 9:34 
GeneralRe: System.Type usage Pin
Andres Manggini15-Apr-03 9:41
Andres Manggini15-Apr-03 9:41 

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.