Click here to Skip to main content
15,887,683 members
Home / Discussions / C#
   

C#

 
GeneralRe: Http Header code (example 200,404,..) Pin
Henry Minute4-Jul-09 3:28
Henry Minute4-Jul-09 3:28 
GeneralRe: Http Header code (example 200,404,..) Pin
Nafiseh Salmani4-Jul-09 4:17
Nafiseh Salmani4-Jul-09 4:17 
QuestionGet Error Number in C# Pin
Anubhava Dimri3-Jul-09 22:19
Anubhava Dimri3-Jul-09 22:19 
AnswerRe: Get Error Number in C# Pin
DaveyM693-Jul-09 22:37
professionalDaveyM693-Jul-09 22:37 
GeneralRe: Get Error Number in C# Pin
Anubhava Dimri4-Jul-09 1:33
Anubhava Dimri4-Jul-09 1:33 
GeneralRe: Get Error Number in C# Pin
Colin Angus Mackay4-Jul-09 2:31
Colin Angus Mackay4-Jul-09 2:31 
GeneralRe: Get Error Number in C# Pin
Anubhava Dimri4-Jul-09 2:37
Anubhava Dimri4-Jul-09 2:37 
GeneralRe: Get Error Number in C# Pin
DaveyM694-Jul-09 5:09
professionalDaveyM694-Jul-09 5:09 
In C# we do this by putting the code below where the On Error Goto would be inside a try block. The Err label is replaced by catch block(s). In addition we have an optional finally block that is run after either have completed:
try
{
    // code that may throw an exception
}
catch(Exception ex)
{
   // an exception is now in ex so you can examine this to get details,
   // show detailed MessageBox etc...
}
finally
{
   // this will run regardless of whether an exception was thrown or not.
   // useful to close/dispose of objects etc...
}
More details here[^].

Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
Why are you using VB6? Do you hate yourself? (Christian Graus)

AnswerRe: Get Error Number in C# Pin
Henry Minute4-Jul-09 0:00
Henry Minute4-Jul-09 0:00 
GeneralRe: Get Error Number in C# Pin
OriginalGriff4-Jul-09 0:42
mveOriginalGriff4-Jul-09 0:42 
GeneralRe: Get Error Number in C# Pin
Anubhava Dimri4-Jul-09 1:34
Anubhava Dimri4-Jul-09 1:34 
GeneralRe: Get Error Number in C# Pin
Colin Angus Mackay4-Jul-09 2:33
Colin Angus Mackay4-Jul-09 2:33 
AnswerRe: Get Error Number in C# Pin
0x3c04-Jul-09 0:46
0x3c04-Jul-09 0:46 
GeneralRe: Get Error Number in C# Pin
Anubhava Dimri4-Jul-09 1:37
Anubhava Dimri4-Jul-09 1:37 
GeneralRe: Get Error Number in C# Pin
Colin Angus Mackay4-Jul-09 2:34
Colin Angus Mackay4-Jul-09 2:34 
GeneralRe: Get Error Number in C# Pin
harold aptroot4-Jul-09 2:50
harold aptroot4-Jul-09 2:50 
GeneralRe: Get Error Number in C# Pin
Anubhava Dimri5-Jul-09 18:11
Anubhava Dimri5-Jul-09 18:11 
GeneralRe: Get Error Number in C# Pin
Narendra Reddy Vajrala21-Jul-09 0:23
Narendra Reddy Vajrala21-Jul-09 0:23 
QuestionHardware Cofiguration and Software details of systems Through Domain Login details Pin
raushan_93-Jul-09 19:52
raushan_93-Jul-09 19:52 
QuestionADO.NET RowFilter Pin
Isaac Gordon3-Jul-09 19:09
Isaac Gordon3-Jul-09 19:09 
AnswerRe: ADO.NET RowFilter Pin
K03063-Jul-09 19:31
K03063-Jul-09 19:31 
Questionhow to run a method in biginning automaticaly Pin
S K Y3-Jul-09 16:32
S K Y3-Jul-09 16:32 
AnswerRe: how to run a method in biginning automaticaly Pin
EliottA3-Jul-09 17:00
EliottA3-Jul-09 17:00 
GeneralRe: how to run a method in biginning automaticaly Pin
S K Y3-Jul-09 17:15
S K Y3-Jul-09 17:15 
GeneralRe: how to run a method in biginning automaticaly Pin
EliottA3-Jul-09 17:54
EliottA3-Jul-09 17:54 

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.