Click here to Skip to main content
15,920,053 members
Home / Discussions / C#
   

C#

 
AnswerRe: Fill a pictureBox with linear gradient Pin
Judah Gabriel Himango2-Nov-06 15:36
sponsorJudah Gabriel Himango2-Nov-06 15:36 
AnswerRe: Fill a pictureBox with linear gradient Pin
Alex@UEA2-Nov-06 21:10
Alex@UEA2-Nov-06 21:10 
QuestionWindows Forms Problem Closing From One To Another Pin
Veldor2-Nov-06 13:07
Veldor2-Nov-06 13:07 
AnswerRe: Windows Forms Problem Closing From One To Another Pin
Pradeep C2-Nov-06 13:32
Pradeep C2-Nov-06 13:32 
GeneralRe: Windows Forms Problem Closing From One To Another Pin
Veldor2-Nov-06 13:45
Veldor2-Nov-06 13:45 
GeneralRe: Windows Forms Problem Closing From One To Another Pin
sam#2-Nov-06 17:28
sam#2-Nov-06 17:28 
GeneralRe: Windows Forms Problem Closing From One To Another Pin
Veldor2-Nov-06 20:07
Veldor2-Nov-06 20:07 
QuestionParse a property dynamic Pin
Storme2-Nov-06 10:59
Storme2-Nov-06 10:59 
Let's say i have an class boo with the properties foo, baa, coo etc ...

From a function I get a string returned of the property name of wich I have to get the value of.

Then I shoud program it this way:

<br />
string returnedPropertyString;<br />
boo temp = new boo();<br />
<br />
switch (returnedPropertyString) {<br />
case "foo":<br />
return temp.foo;<br />
break;<br />
case "baa":<br />
return temp.baa;<br />
//etc ...<br />
}<br />


Now I wonder if there isnt a nicer way to do this like eg in flash:
<br />
string returnedPropertyString;<br />
boo temp = new boo();<br />
<br />
return temp.[returnedPropertyString]  // it parses the returnedpropertystring to the correct property<br />


Would be verry usefull, because I have lots of properties and subproperties in my boo class so it would be almost a endless switch statement Smile | :)
AnswerRe: Parse a property dynamic Pin
Judah Gabriel Himango2-Nov-06 11:15
sponsorJudah Gabriel Himango2-Nov-06 11:15 
GeneralRe: Parse a property dynamic Pin
Storme2-Nov-06 13:06
Storme2-Nov-06 13:06 
GeneralRe: Parse a property dynamic [modified] Pin
aamironline2-Nov-06 18:45
aamironline2-Nov-06 18:45 
QuestionList property for a custom control, doesn't work in design time Pin
warnov2-Nov-06 9:25
warnov2-Nov-06 9:25 
QuestionWeird ListViewItem ForeColor change Pin
kozu2-Nov-06 9:19
kozu2-Nov-06 9:19 
QuestionMemory usage... Pin
Shy Agam2-Nov-06 9:14
Shy Agam2-Nov-06 9:14 
AnswerRe: Memory usage... Pin
Guffa2-Nov-06 10:10
Guffa2-Nov-06 10:10 
GeneralRe: Memory usage... Pin
Judah Gabriel Himango2-Nov-06 11:07
sponsorJudah Gabriel Himango2-Nov-06 11:07 
GeneralRe: Memory usage... Pin
Paul Conrad2-Nov-06 16:23
professionalPaul Conrad2-Nov-06 16:23 
Questionmaking a jealous Windows Forms control Pin
jesarg2-Nov-06 8:05
jesarg2-Nov-06 8:05 
AnswerRe: making a jealous Windows Forms control Pin
PIEBALDconsult2-Nov-06 9:52
mvePIEBALDconsult2-Nov-06 9:52 
GeneralRe: making a jealous Windows Forms control Pin
jesarg2-Nov-06 10:04
jesarg2-Nov-06 10:04 
Questionhow to use Sql Server 2005 Reporting Services ? Pin
hdv2122-Nov-06 7:11
hdv2122-Nov-06 7:11 
QuestionDeployment Project - Registry Pin
BoneSoft2-Nov-06 7:00
BoneSoft2-Nov-06 7:00 
AnswerRe: Deployment Project - Registry Pin
BoneSoft2-Nov-06 10:01
BoneSoft2-Nov-06 10:01 
Questionhow to use callback for show progressing operation ? Pin
hdv2122-Nov-06 6:21
hdv2122-Nov-06 6:21 
AnswerRe: how to use callback for show progressing operation ? Pin
Guffa2-Nov-06 7:48
Guffa2-Nov-06 7:48 

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.