Click here to Skip to main content
15,906,463 members
Home / Discussions / C#
   

C#

 
AnswerRe: Do not allow taskmanager to close my app Pin
spiritboy13-Jan-09 7:45
spiritboy13-Jan-09 7:45 
GeneralRe: Do not allow taskmanager to close my app Pin
Ravi Bhavnani13-Jan-09 7:46
professionalRavi Bhavnani13-Jan-09 7:46 
GeneralRe: Do not allow taskmanager to close my app Pin
spiritboy13-Jan-09 7:49
spiritboy13-Jan-09 7:49 
GeneralRe: Do not allow taskmanager to close my app Pin
Ravi Bhavnani13-Jan-09 7:57
professionalRavi Bhavnani13-Jan-09 7:57 
AnswerRe: Do not allow taskmanager to close my app Pin
Dave Kreskowiak13-Jan-09 7:46
mveDave Kreskowiak13-Jan-09 7:46 
AnswerRe: Do not allow taskmanager to close my app Pin
Ravi Bhavnani13-Jan-09 7:56
professionalRavi Bhavnani13-Jan-09 7:56 
GeneralRe: Do not allow taskmanager to close my app Pin
spiritboy13-Jan-09 8:02
spiritboy13-Jan-09 8:02 
GeneralRe: Do not allow taskmanager to close my app Pin
Dave Kreskowiak13-Jan-09 10:16
mveDave Kreskowiak13-Jan-09 10:16 
No, it's not. You have your applications state to worry about. What happens if the app is restarted?

And Ravi's suggestion does not work 100% of the time and is also dependant on the version of the .NET Framework you wrote the app against. Not every version supports telling you that TaskManager is responsible for closing your app. The FormClosing event and CloseReason enumeration didn't show up until .NET 2.0.


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008




GeneralRe: Do not allow taskmanager to close my app Pin
Ravi Bhavnani13-Jan-09 12:28
professionalRavi Bhavnani13-Jan-09 12:28 
GeneralRe: Do not allow taskmanager to close my app Pin
Giorgi Dalakishvili13-Jan-09 8:44
mentorGiorgi Dalakishvili13-Jan-09 8:44 
GeneralRe: Do not allow taskmanager to close my app Pin
Dave Kreskowiak13-Jan-09 10:09
mveDave Kreskowiak13-Jan-09 10:09 
GeneralRe: Do not allow taskmanager to close my app Pin
Ravi Bhavnani13-Jan-09 12:20
professionalRavi Bhavnani13-Jan-09 12:20 
AnswerRe: Do not allow taskmanager to close my app Pin
musefan13-Jan-09 8:27
musefan13-Jan-09 8:27 
GeneralRe: Do not allow taskmanager to close my app Pin
EliottA14-Jan-09 14:56
EliottA14-Jan-09 14:56 
Questionhow can made clinic project in c#.net?HOW CAN EASY LEANING VISUAL STUDIO .NET 2003 OR 2005? Pin
mohammedali200613-Jan-09 6:43
mohammedali200613-Jan-09 6:43 
AnswerRe: how can made clinic project in c#.net?HOW CAN EASY LEANING VISUAL STUDIO .NET 2003 OR 2005? Pin
EliottA13-Jan-09 6:58
EliottA13-Jan-09 6:58 
AnswerRepost Pin
Not Active13-Jan-09 7:06
mentorNot Active13-Jan-09 7:06 
AnswerRe: how can made clinic project in c#.net?HOW CAN EASY LEANING VISUAL STUDIO .NET 2003 OR 2005? Pin
dan!sh 13-Jan-09 7:08
professional dan!sh 13-Jan-09 7:08 
AnswerRe: how can made clinic project in c#.net?HOW CAN EASY LEANING VISUAL STUDIO .NET 2003 OR 2005? Pin
CPallini13-Jan-09 7:48
mveCPallini13-Jan-09 7:48 
AnswerRe: how can made clinic project in c#.net?HOW CAN EASY LEANING VISUAL STUDIO .NET 2003 OR 2005? Pin
Dave Kreskowiak13-Jan-09 7:56
mveDave Kreskowiak13-Jan-09 7:56 
AnswerCP IGNORE THIS COMPLETE IDIOT FOREVER AND EVER AND EVER!!!!!!!!!!!!!!!!!!!!!!!!!! Pin
leckey13-Jan-09 9:04
leckey13-Jan-09 9:04 
GeneralAgreed! Pin
DaveyM6913-Jan-09 9:36
professionalDaveyM6913-Jan-09 9:36 
GeneralRe: Agreed! Pin
leckey13-Jan-09 9:38
leckey13-Jan-09 9:38 
AnswerRe: how can made clinic project in c#.net?HOW CAN EASY LEANING VISUAL STUDIO .NET 2003 OR 2005? Pin
scottgp13-Jan-09 9:38
professionalscottgp13-Jan-09 9:38 
QuestionInitiating a process from child Pin
Lodeclaw13-Jan-09 6:41
Lodeclaw13-Jan-09 6: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.