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
EliottA13-Jan-09 7:42
EliottA13-Jan-09 7:42 
GeneralRe: Do not allow taskmanager to close my app Pin
Ravi Bhavnani13-Jan-09 7:45
professionalRavi Bhavnani13-Jan-09 7:45 
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 
Dave Kreskowiak wrote:
Your app will never know what hit it.

Not really. The app receives a FormClosing event with CloseReason = CloseReason.TaskManagerClosing. Cancelling the close will cause TaskManager to display "The app you're trying to close is not responding.", allowing you to cancel the kill or "force" a kill. Because we're able to handle the event, we can start a new instance.

Dave Kreskowiak wrote:
The only acceptable method is to write a service

I don't think a service can be safely used to start a desktop app since a service can start before a desktop exists.

/ravi

My new year resolution: 2048 x 1536
Home | Articles | My .NET bits | Freeware
ravib(at)ravib(dot)com

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 
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 

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.