Click here to Skip to main content
15,888,610 members
Home / Discussions / C#
   

C#

 
Questionload image Pin
Arefeh Haghpnah4-Nov-09 3:13
Arefeh Haghpnah4-Nov-09 3:13 
AnswerCross post Pin
Not Active4-Nov-09 3:38
mentorNot Active4-Nov-09 3:38 
AnswerRe: load image Pin
Shameel4-Nov-09 4:06
professionalShameel4-Nov-09 4:06 
GeneralRe: load image Pin
Arefeh Haghpnah5-Nov-09 7:32
Arefeh Haghpnah5-Nov-09 7:32 
QuestionSendKeys in WebService Pin
Juergen Loewner4-Nov-09 2:16
Juergen Loewner4-Nov-09 2:16 
AnswerRe: SendKeys in WebService Pin
Dave Kreskowiak4-Nov-09 5:35
mveDave Kreskowiak4-Nov-09 5:35 
QuestionDealing with Lists as objects Pin
MatthysDT4-Nov-09 2:09
MatthysDT4-Nov-09 2:09 
AnswerRe: Dealing with Lists as objects Pin
Luc Pattyn4-Nov-09 2:34
sitebuilderLuc Pattyn4-Nov-09 2:34 
don't use strings to check for a specific type, it is expensive and inaccurate as it won't recognize derived types. The correct way is based on the is and as keywords.

Control c;
...
if (c is ListBox) log("c is a ListBox");

Label lbl=c as Label;
if (lbl!=null) log ("c is a label, text="+lbl.Text);


Smile | :)

Luc Pattyn

I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages


GeneralRe: Dealing with Lists as objects Pin
MatthysDT4-Nov-09 2:49
MatthysDT4-Nov-09 2:49 
GeneralRe: Dealing with Lists as objects Pin
Luc Pattyn4-Nov-09 4:05
sitebuilderLuc Pattyn4-Nov-09 4:05 
AnswerRe: Dealing with Lists as objects Pin
Shameel4-Nov-09 3:42
professionalShameel4-Nov-09 3:42 
QuestionRe: Dealing with Lists as objects Pin
MatthysDT4-Nov-09 18:51
MatthysDT4-Nov-09 18:51 
AnswerRe: Dealing with Lists as objects Pin
PIEBALDconsult4-Nov-09 3:56
mvePIEBALDconsult4-Nov-09 3:56 
QuestionGlass Effect using dwmapi.dll in windows xp on C# Pin
Viswa Teja4-Nov-09 2:01
Viswa Teja4-Nov-09 2:01 
AnswerRe: Glass Effect using dwmapi.dll in windows xp on C# [modified] Pin
Covean4-Nov-09 2:12
Covean4-Nov-09 2:12 
AnswerDumb attempt to bump post. Pin
Pete O'Hanlon4-Nov-09 2:41
mvePete O'Hanlon4-Nov-09 2:41 
AnswerRe: Glass Effect using dwmapi.dll in windows xp on C# Pin
Dave Kreskowiak4-Nov-09 5:20
mveDave Kreskowiak4-Nov-09 5:20 
Question[Windows Form with visual C#] - Problem with data conversion Pin
_ASPAle_4-Nov-09 1:12
_ASPAle_4-Nov-09 1:12 
AnswerRe: [Windows Form with visual C#] - Problem with data conversion Pin
OriginalGriff4-Nov-09 1:16
mveOriginalGriff4-Nov-09 1:16 
GeneralRe: [Windows Form with visual C#] - Problem with data conversion Pin
_ASPAle_4-Nov-09 2:17
_ASPAle_4-Nov-09 2:17 
AnswerRe: [Windows Form with visual C#] - Problem with data conversion Pin
Giorgi Dalakishvili4-Nov-09 1:19
mentorGiorgi Dalakishvili4-Nov-09 1:19 
AnswerRe: [Windows Form with visual C#] - Problem with data conversion Pin
Luc Pattyn4-Nov-09 2:37
sitebuilderLuc Pattyn4-Nov-09 2:37 
QuestionXNA: Game updating slowly Pin
jdneul4-Nov-09 1:06
jdneul4-Nov-09 1:06 
AnswerRe: XNA: Game updating slowly Pin
harold aptroot4-Nov-09 5:49
harold aptroot4-Nov-09 5:49 
GeneralRe: XNA: Game updating slowly Pin
jdneul4-Nov-09 6:54
jdneul4-Nov-09 6: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.