Click here to Skip to main content
15,893,487 members
Home / Discussions / C#
   

C#

 
GeneralRe: Dictionary where the key is a combination of values? Pin
Rune Baess21-Nov-07 10:15
Rune Baess21-Nov-07 10:15 
GeneralRe: Dictionary where the key is a combination of values? Pin
PIEBALDconsult21-Nov-07 12:11
mvePIEBALDconsult21-Nov-07 12:11 
GeneralRe: Dictionary where the key is a combination of values? Pin
PIEBALDconsult23-Nov-07 7:25
mvePIEBALDconsult23-Nov-07 7:25 
QuestionHow do I "test" an Exception type? Pin
JoeRip18-Nov-07 21:37
JoeRip18-Nov-07 21:37 
AnswerRe: How do I "test" an Exception type? Pin
laserbaronen18-Nov-07 21:39
laserbaronen18-Nov-07 21:39 
GeneralRe: How do I "test" an Exception type? Pin
JoeRip18-Nov-07 21:42
JoeRip18-Nov-07 21:42 
GeneralRe: How do I "test" an Exception type? Pin
JoeRip18-Nov-07 21:50
JoeRip18-Nov-07 21:50 
GeneralRe: How do I "test" an Exception type? Pin
Martin#18-Nov-07 21:53
Martin#18-Nov-07 21:53 
Hello,

You have to cast it to the Type!
if (ex is COMException)
{
    COMException comEx = ex as COMException
    return comEx.ErrorCode.ToString();
}

or
COMException comEx = ex as COMException
if(comEx !=null)
{
   return comEx.ErrorCode.ToString();
}


All the best,

Martin

GeneralRe: How do I "test" an Exception type? Pin
JoeRip18-Nov-07 22:01
JoeRip18-Nov-07 22:01 
GeneralRe: How do I "test" an Exception type? Pin
Martin#18-Nov-07 22:06
Martin#18-Nov-07 22:06 
GeneralRe: How do I "test" an Exception type? Pin
PIEBALDconsult19-Nov-07 4:23
mvePIEBALDconsult19-Nov-07 4:23 
GeneralRe: How do I "test" an Exception type? Pin
JoeRip18-Nov-07 21:58
JoeRip18-Nov-07 21:58 
GeneralRe: How do I "test" an Exception type? Pin
J4amieC18-Nov-07 22:33
J4amieC18-Nov-07 22:33 
GeneralRe: How do I "test" an Exception type? Pin
JoeRip18-Nov-07 22:35
JoeRip18-Nov-07 22:35 
Questioni dont want edit in combo box in window application Pin
Rajeshwar Code- Developer18-Nov-07 21:10
Rajeshwar Code- Developer18-Nov-07 21:10 
AnswerRe: i dont want edit in combo box in window application Pin
Giorgi Dalakishvili18-Nov-07 21:18
mentorGiorgi Dalakishvili18-Nov-07 21:18 
GeneralRe: i dont want edit in combo box in window application Pin
Rajeshwar Code- Developer19-Nov-07 0:42
Rajeshwar Code- Developer19-Nov-07 0:42 
QuestionTranslate into C# Pin
Programm3r18-Nov-07 21:08
Programm3r18-Nov-07 21:08 
AnswerRe: Translate into C# Pin
pmarfleet18-Nov-07 21:09
pmarfleet18-Nov-07 21:09 
GeneralRe: Translate into C# Pin
Programm3r18-Nov-07 21:16
Programm3r18-Nov-07 21:16 
GeneralRe: Translate into C# Pin
pmarfleet18-Nov-07 21:20
pmarfleet18-Nov-07 21:20 
GeneralRe: Translate into C# Pin
Programm3r18-Nov-07 21:22
Programm3r18-Nov-07 21:22 
AnswerRe: Translate into C# Pin
Hari Om Prakash Sharma18-Nov-07 22:06
Hari Om Prakash Sharma18-Nov-07 22:06 
QuestionTimer Display data from database Pin
jacklynn_mei18-Nov-07 21:06
jacklynn_mei18-Nov-07 21:06 
AnswerRe: Timer Display data from database Pin
Abhijit Jana18-Nov-07 21:35
professionalAbhijit Jana18-Nov-07 21:35 

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.