Click here to Skip to main content
15,902,896 members
Home / Discussions / C#
   

C#

 
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 
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 
Thanks, it worked

But since i work with it in Linq, i've made it an function in my class.

For those that are interested, I use it this way:

<br />
// Function in my class<br />
<br />
public object GetValue(string property) {<br />
            Type x = typeof(clsHotel);<br />
            PropertyInfo p = x.GetProperty(property);<br />
            //System.Console.Out.WriteLine(p.GetValue(this,null));<br />
            return p.GetValue(this,null);<br />
        }<br />
<br />
// My linq code<br />
<br />
switch (regel[1]) {<br />
                case "=":<br />
                case "is gelijk aan":<br />
                    //lijst = lijst.Where (d => x.GetProperty("Naam").GetValue(d,null) == "mpo");<br />
                    lijst = from d in lijst<br />
                            where (string)d.GetValue(regel[0]) == regel[2]<br />
                            select d;<br />
                    break;<br />
            }<br />
            return lijst;<br />

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 
QuestionCreate xml from a dll Pin
gmellado2-Nov-06 6:03
gmellado2-Nov-06 6:03 
AnswerRe: Create xml from a dll Pin
Judah Gabriel Himango2-Nov-06 6:07
sponsorJudah Gabriel Himango2-Nov-06 6:07 

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.