Click here to Skip to main content
15,922,309 members
Home / Discussions / C#
   

C#

 
GeneralRe: Quick Question Pin
Nish Nishant28-May-02 18:34
sitebuilderNish Nishant28-May-02 18:34 
GeneralRe: Quick Question Pin
Nick Parker28-May-02 18:57
protectorNick Parker28-May-02 18:57 
GeneralRe: Quick Question Pin
James T. Johnson28-May-02 19:09
James T. Johnson28-May-02 19:09 
GeneralUnhandledExceptionEventHandler Pin
Vanclei28-May-02 9:04
Vanclei28-May-02 9:04 
GeneralRe: UnhandledExceptionEventHandler Pin
Rama Krishna Vavilala28-May-02 11:42
Rama Krishna Vavilala28-May-02 11:42 
GeneralRe: UnhandledExceptionEventHandler Pin
James T. Johnson28-May-02 14:58
James T. Johnson28-May-02 14:58 
GeneralRe: UnhandledExceptionEventHandler Pin
Nick Parker29-May-02 2:12
protectorNick Parker29-May-02 2:12 
GeneralRe: UnhandledExceptionEventHandler Pin
Nick Parker28-May-02 17:01
protectorNick Parker28-May-02 17:01 
You will want to use the try/catch method of handling errors by placing your process that is bombing out within this style. Note that you will want to place your custom error handler at the top above any generic handler.
Ex.
try
{

int i = 10/Int32.Parse(args[0]);

}
catch(IndexOutOfRangeException e)
{

Console.WriteLine(e.Message);

}

catch(FormatException e)
{

Console.WriteLine(e.Message);

}

catch(DivideByZeroException e)
{

Console.WriteLine(e.Message);

}

catch(OverflowException e)
{

Console.WriteLine(e.Message);

}


HTH

Nick Parker
GeneralRe: UnhandledExceptionEventHandler Pin
James T. Johnson28-May-02 19:14
James T. Johnson28-May-02 19:14 
GeneralRe: UnhandledExceptionEventHandler Pin
Nick Parker29-May-02 1:39
protectorNick Parker29-May-02 1:39 
GeneralRe: UnhandledExceptionEventHandler Pin
Rama Krishna Vavilala29-May-02 4:18
Rama Krishna Vavilala29-May-02 4:18 
GeneralRe: UnhandledExceptionEventHandler Pin
Nick Parker29-May-02 5:08
protectorNick Parker29-May-02 5:08 
QuestionCan I do multiple selection onDatagrid in WinForms? Pin
28-May-02 5:34
suss28-May-02 5:34 
Generalcreate xml for collection class Pin
sharon28-May-02 1:58
sharon28-May-02 1:58 
GeneralRe: create xml for collection class Pin
James T. Johnson28-May-02 8:33
James T. Johnson28-May-02 8:33 
GeneralRe: create xml for collection class Pin
sharon28-May-02 19:15
sharon28-May-02 19:15 
QuestionWhat the ¤#& is the use of Interfaces!!! Pin
Rickard Andersson2028-May-02 1:28
Rickard Andersson2028-May-02 1:28 
AnswerRe: What the ¤#& is the use of Interfaces!!! Pin
Nish Nishant28-May-02 4:02
sitebuilderNish Nishant28-May-02 4:02 
AnswerRe: What the ¤#& is the use of Interfaces!!! Pin
James T. Johnson28-May-02 8:27
James T. Johnson28-May-02 8:27 
GeneralRe: What the ¤#& is the use of Interfaces!!! Pin
Nish Nishant28-May-02 14:47
sitebuilderNish Nishant28-May-02 14:47 
GeneralRe: What the ¤#& is the use of Interfaces!!! Pin
James T. Johnson28-May-02 14:53
James T. Johnson28-May-02 14:53 
GeneralScaling a transparent 256 colors gif or png with GDI+ Pin
27-May-02 22:33
suss27-May-02 22:33 
GeneralRe: Scaling a transparent 256 colors gif or png with GDI+ Pin
James T. Johnson28-May-02 8:29
James T. Johnson28-May-02 8:29 
GeneralRe: Scaling a transparent 256 colors gif or png with GDI+ Pin
Todd Smith30-May-02 7:11
Todd Smith30-May-02 7:11 
QuestionHow can I use the libraries on runtime? Pin
Vu Truong27-May-02 22:10
Vu Truong27-May-02 22:10 

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.