Click here to Skip to main content
15,912,457 members
Home / Discussions / C#
   

C#

 
Question[Message Deleted] Pin
PeterSchregle18-Dec-07 12:13
PeterSchregle18-Dec-07 12:13 
GeneralRe: Pointers and C# Pin
J$18-Dec-07 12:56
J$18-Dec-07 12:56 
GeneralRe: Pointers and C# Pin
Anthony Mushrow18-Dec-07 16:00
professionalAnthony Mushrow18-Dec-07 16:00 
QuestionSimulating the use of a splitter Pin
Clive D. Pottinger18-Dec-07 11:03
Clive D. Pottinger18-Dec-07 11:03 
GeneralRe: Simulating the use of a splitter Pin
DaveyM6918-Dec-07 11:35
professionalDaveyM6918-Dec-07 11:35 
GeneralRe: Simulating the use of a splitter Pin
Ravi Bhavnani18-Dec-07 11:39
professionalRavi Bhavnani18-Dec-07 11:39 
GeneralRe: Simulating the use of a splitter Pin
Ravi Bhavnani18-Dec-07 11:41
professionalRavi Bhavnani18-Dec-07 11:41 
QuestionHandler for all unhandled exceptions in a class? Pin
alanteigne18-Dec-07 9:47
alanteigne18-Dec-07 9:47 
Hello, this may be a stupid question but I'm curious. I have a class I've created (that extends the FORM class) that runs as a child form of my main application. The purpose and nature of the form is such that it doesn't matter if it closes...the parent form monitors and will reopen it if necessary. I am handling several types of exceptions and closing the child form when they occur. However, I occasionally get an unhandled exception (in the child form) that causes it to crash.

I'm looking for a way to catch all unhandled exceptions in my custom class and run an event accordingly. Is there a way to do this? I see a method for any unhandled exceptions for the whole app, but I don't want that. I also see how to handle all exceptions when my child form is initialized, but that doesn't help if it's already initialized and running.

All I want now is to handle all exceptions in my custom class. Is this possible?

Thanks,

Alan
GeneralRe: Handler for all unhandled exceptions in a class? Pin
eggsovereasy18-Dec-07 10:36
eggsovereasy18-Dec-07 10:36 
GeneralRe: Handler for all unhandled exceptions in a class? Pin
alanteigne18-Dec-07 11:56
alanteigne18-Dec-07 11:56 
GeneralRe: Handler for all unhandled exceptions in a class? Pin
martin_hughes18-Dec-07 12:14
martin_hughes18-Dec-07 12:14 
GeneralRe: Handler for all unhandled exceptions in a class? Pin
Mark Churchill18-Dec-07 14:24
Mark Churchill18-Dec-07 14:24 
GeneralRe: Handler for all unhandled exceptions in a class? Pin
Giorgi Dalakishvili18-Dec-07 19:40
mentorGiorgi Dalakishvili18-Dec-07 19:40 
GeneralRe: Handler for all unhandled exceptions in a class? Pin
alanteigne19-Dec-07 7:30
alanteigne19-Dec-07 7:30 
GeneralException Handling in Windows application. Pin
Shani Aulakh18-Dec-07 9:27
Shani Aulakh18-Dec-07 9:27 
GeneralRe: Exception Handling in Windows application. Pin
pmarfleet18-Dec-07 10:23
pmarfleet18-Dec-07 10:23 
GeneralRe: Exception Handling in Windows application. Pin
Shani Aulakh18-Dec-07 10:34
Shani Aulakh18-Dec-07 10:34 
GeneralRe: Exception Handling in Windows application. Pin
pmarfleet18-Dec-07 10:46
pmarfleet18-Dec-07 10:46 
GeneralRe: Exception Handling in Windows application. Pin
Shani Aulakh18-Dec-07 10:56
Shani Aulakh18-Dec-07 10:56 
GeneralRe: Exception Handling in Windows application. Pin
pmarfleet18-Dec-07 11:01
pmarfleet18-Dec-07 11:01 
GeneralRe: Exception Handling in Windows application. Pin
Shani Aulakh18-Dec-07 11:13
Shani Aulakh18-Dec-07 11:13 
GeneralRe: Exception Handling in Windows application. Pin
pmarfleet18-Dec-07 11:20
pmarfleet18-Dec-07 11:20 
GeneralRe: Exception Handling in Windows application. Pin
Kalvin @ Work18-Dec-07 11:16
Kalvin @ Work18-Dec-07 11:16 
GeneralRe: Exception Handling in Windows application. Pin
Shani Aulakh18-Dec-07 11:21
Shani Aulakh18-Dec-07 11:21 
GeneralpropertyGrid control Pin
netJP12L18-Dec-07 8:59
netJP12L18-Dec-07 8:59 

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.