Click here to Skip to main content
15,897,518 members
Home / Discussions / C#
   

C#

 
QuestionDrag & Drop problem Pin
ADRENALIN20064-Jul-09 7:27
ADRENALIN20064-Jul-09 7:27 
AnswerRe: Drag & Drop problem Pin
Luc Pattyn4-Jul-09 8:21
sitebuilderLuc Pattyn4-Jul-09 8:21 
GeneralRe: Drag & Drop problem Pin
ADRENALIN20065-Jul-09 5:09
ADRENALIN20065-Jul-09 5:09 
QuestionSplitting string in blocks of 16 Pin
GauravKP4-Jul-09 2:37
professionalGauravKP4-Jul-09 2:37 
AnswerRe: Splitting string in blocks of 16 Pin
Colin Angus Mackay4-Jul-09 2:45
Colin Angus Mackay4-Jul-09 2:45 
QuestionDataGrid showing multiple columns in C# 2003 [modified] Pin
Viper-Eyes4-Jul-09 2:08
Viper-Eyes4-Jul-09 2:08 
QuestionHttp Header code (example 200,404,..) Pin
Nafiseh Salmani3-Jul-09 22:33
Nafiseh Salmani3-Jul-09 22:33 
AnswerRe: Http Header code (example 200,404,..) Pin
Colin Angus Mackay4-Jul-09 1:08
Colin Angus Mackay4-Jul-09 1:08 
QuestionRe: Http Header code (example 200,404,..) Pin
Nafiseh Salmani4-Jul-09 1:36
Nafiseh Salmani4-Jul-09 1:36 
AnswerRe: Http Header code (example 200,404,..) Pin
Henry Minute4-Jul-09 1:46
Henry Minute4-Jul-09 1:46 
JokeRe: Http Header code (example 200,404,..) Pin
Colin Angus Mackay4-Jul-09 2:18
Colin Angus Mackay4-Jul-09 2:18 
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 

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.