Click here to Skip to main content
15,890,717 members
Home / Discussions / C#
   

C#

 
GeneralRe: VS 2005 flickering problem mouse leave Pin
Phoen255-Jul-06 9:44
Phoen255-Jul-06 9:44 
Questioninsert image to Sql Data base Pin
v_sadeghpour27-May-06 11:46
v_sadeghpour27-May-06 11:46 
AnswerRe: insert image to Sql Data base Pin
Judah Gabriel Himango27-May-06 16:58
sponsorJudah Gabriel Himango27-May-06 16:58 
AnswerRe: insert image to Sql Data base Pin
Billah27-May-06 18:58
Billah27-May-06 18:58 
GeneralRe: insert image to Sql Data base Pin
v_sadeghpour28-May-06 11:27
v_sadeghpour28-May-06 11:27 
Questionthrow Pin
mehrdadc4827-May-06 11:18
mehrdadc4827-May-06 11:18 
AnswerRe: throw [modified*2] Pin
Judah Gabriel Himango27-May-06 11:40
sponsorJudah Gabriel Himango27-May-06 11:40 
GeneralRe: throw Pin
Graham Nimbley27-May-06 11:56
Graham Nimbley27-May-06 11:56 
Judah Himango wrote:
The throw keyword can only be used within a catch block. Throw will simply throw the exception that was caught within the catch block.


Sorry to correct you, but throw can also be used outside of a catch block. The general purpose of this is to initiate an user generated exception. E.g.

if (!File.Exists("test.txt")) {
   throw new FileIOException("File was not found");
}
else {
   ....
}


Graham.
AnswerRe: throw Pin
Guffa27-May-06 12:12
Guffa27-May-06 12:12 
GeneralRe: throw Pin
Graham Nimbley27-May-06 12:53
Graham Nimbley27-May-06 12:53 
GeneralRe: throw Pin
Judah Gabriel Himango27-May-06 14:11
sponsorJudah Gabriel Himango27-May-06 14:11 
QuestionShockwaveObject Pin
mehrdadc4827-May-06 11:15
mehrdadc4827-May-06 11:15 
Questionsql weird problem Pin
JelleM27-May-06 10:45
JelleM27-May-06 10:45 
AnswerRe: sql weird problem Pin
Colin Angus Mackay27-May-06 11:15
Colin Angus Mackay27-May-06 11:15 
GeneralRe: sql weird problem Pin
JelleM27-May-06 11:26
JelleM27-May-06 11:26 
AnswerRe: sql weird problem Pin
Guffa27-May-06 12:09
Guffa27-May-06 12:09 
GeneralRe: sql weird problem Pin
JelleM28-May-06 0:43
JelleM28-May-06 0:43 
AnswerRe: sql weird problem Pin
Guffa28-May-06 10:55
Guffa28-May-06 10:55 
GeneralRe: sql weird problem Pin
JelleM28-May-06 11:58
JelleM28-May-06 11:58 
GeneralRe: sql weird problem Pin
JelleM28-May-06 3:58
JelleM28-May-06 3:58 
QuestionIncreasing the size of the form Pin
cshivaprasad27-May-06 9:44
cshivaprasad27-May-06 9:44 
AnswerRe: Increasing the size of the form Pin
Colin Angus Mackay27-May-06 9:48
Colin Angus Mackay27-May-06 9:48 
AnswerRe: Increasing the size of the form Pin
stancrm28-May-06 21:17
stancrm28-May-06 21:17 
QuestionC#.Net application Pin
betty_boop27-May-06 9:31
betty_boop27-May-06 9:31 
AnswerRe: C#.Net application Pin
NaNg1524127-May-06 9:34
NaNg1524127-May-06 9:34 

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.