Click here to Skip to main content
15,898,938 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to mouse gesture without window? Pin
Giorgi Dalakishvili20-Nov-08 2:20
mentorGiorgi Dalakishvili20-Nov-08 2:20 
GeneralRe: how to mouse gesture without window? Pin
jchigg200020-Nov-08 2:24
jchigg200020-Nov-08 2:24 
GeneralRe: how to mouse gesture without window? Pin
Darryl Borden20-Nov-08 8:44
Darryl Borden20-Nov-08 8:44 
GeneralRe: how to mouse gesture without window? Pin
ping_jacob22-Nov-08 2:35
ping_jacob22-Nov-08 2:35 
GeneralRe: how to mouse gesture without window? Pin
Giorgi Dalakishvili22-Nov-08 3:18
mentorGiorgi Dalakishvili22-Nov-08 3:18 
GeneralRe: how to mouse gesture without window? Pin
ping_jacob14-Dec-08 6:22
ping_jacob14-Dec-08 6:22 
GeneralRe: how to mouse gesture without window? Pin
Giorgi Dalakishvili14-Dec-08 7:03
mentorGiorgi Dalakishvili14-Dec-08 7:03 
Questionhow to access a property / member variable at run time Pin
here2learn20-Nov-08 1:02
here2learn20-Nov-08 1:02 
Hi All,

i am working on a project where we need to access some "property / member variable" at run time. i will explain in detail below:-

suppose there is a class called T which has some 4 member variables and 4 properties named A,B,C and D for them.

I will get a list from DB, which contains name of fields which i have to set property for in my code. till then name of field and thier numbers are unknown, because of dynamic nature of number of fields in my class.

suppose i get list which contains "B","D" only. now i need to set value for property B and D of object (type / class T)

Now what i need is something like this:-
string strfieldname = "B" // string which saves each field name from field list

T.B=20 // this is what i want to achieve, but htis is static but i can't write static code as field name is not concrete / decided at compile time.

here this line of code
T.B=20
shall be able to act as T.C, T.D, T.A based on field name string value saved in strfieldname.

is it any how possible? please help me as i am running into big trouble... D'Oh! | :doh:


People often say that motivation doesn't last. Well, neither does bathing - that's why we recommend it daily
Akhilesh Singh

AnswerRe: how to access a property / member variable at run time PinPopular
Giorgi Dalakishvili20-Nov-08 1:10
mentorGiorgi Dalakishvili20-Nov-08 1:10 
GeneralRe: how to access a property / member variable at run time Pin
here2learn20-Nov-08 1:50
here2learn20-Nov-08 1:50 
GeneralRe: how to access a property / member variable at run time Pin
Giorgi Dalakishvili20-Nov-08 1:58
mentorGiorgi Dalakishvili20-Nov-08 1:58 
GeneralRe: how to access a property / member variable at run time Pin
here2learn20-Nov-08 2:20
here2learn20-Nov-08 2:20 
GeneralRe: how to access a property / member variable at run time Pin
Giorgi Dalakishvili20-Nov-08 2:21
mentorGiorgi Dalakishvili20-Nov-08 2:21 
AnswerRe: how to access a property / member variable at run time Pin
Ashfield20-Nov-08 1:16
Ashfield20-Nov-08 1:16 
GeneralRe: how to access a property / member variable at run time Pin
here2learn20-Nov-08 1:52
here2learn20-Nov-08 1:52 
AnswerRe: how to access a property / member variable at run time Pin
Simon P Stevens20-Nov-08 1:25
Simon P Stevens20-Nov-08 1:25 
GeneralRe: how to access a property / member variable at run time Pin
here2learn20-Nov-08 1:56
here2learn20-Nov-08 1:56 
QuestionDetecting the Mouse Wheel on a ListView Control Pin
Darryl Borden19-Nov-08 23:34
Darryl Borden19-Nov-08 23:34 
AnswerRe: Detecting the Mouse Wheel on a ListView Control Pin
DaveyM6919-Nov-08 23:48
professionalDaveyM6919-Nov-08 23:48 
AnswerRe: Detecting the Mouse Wheel on a ListView Control Pin
Seraph_summer20-Nov-08 3:42
Seraph_summer20-Nov-08 3:42 
AnswerRe: Detecting the Mouse Wheel on a ListView Control Pin
DaveyM6920-Nov-08 4:32
professionalDaveyM6920-Nov-08 4:32 
QuestionProcessor ID Pin
Syed Shahid Hussain19-Nov-08 22:21
Syed Shahid Hussain19-Nov-08 22:21 
AnswerRe: Processor ID Pin
Samer Aburabie19-Nov-08 22:31
Samer Aburabie19-Nov-08 22:31 
AnswerRe: Processor ID Pin
#realJSOP19-Nov-08 23:40
professional#realJSOP19-Nov-08 23:40 
QuestionGetting data from database with ado.net with more conditions? Pin
Matjaz-xyz19-Nov-08 20:48
Matjaz-xyz19-Nov-08 20: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.