Click here to Skip to main content
15,891,184 members
Home / Discussions / C#
   

C#

 
GeneralRe: Please help compiling Dr Dobbs Challenge from 2008 Pin
cgb14329-Feb-12 6:09
cgb14329-Feb-12 6:09 
GeneralRe: Please help compiling Dr Dobbs Challenge from 2008 Pin
cgb14328-Feb-12 5:42
cgb14328-Feb-12 5:42 
GeneralRe: Please help compiling Dr Dobbs Challenge from 2008 Pin
vbmike1-Mar-12 4:56
vbmike1-Mar-12 4:56 
Questionrange of cells border question Pin
Blubbo27-Feb-12 6:46
Blubbo27-Feb-12 6:46 
AnswerRe: range of cells border question Pin
Eddy Vluggen27-Feb-12 6:55
professionalEddy Vluggen27-Feb-12 6:55 
GeneralRe: range of cells border question Pin
Blubbo27-Feb-12 7:17
Blubbo27-Feb-12 7:17 
GeneralRe: range of cells border question Pin
Blubbo27-Feb-12 8:27
Blubbo27-Feb-12 8:27 
Question"Find" name or value of property in Property Grid (property grid is tree structure) Pin
kashme27-Feb-12 3:47
kashme27-Feb-12 3:47 
Consider a larger picture. Suppose I have class A,B,C.

Class A contains property B and class B contains property C and class C have some properties. How will I access properties of C. I need to know a generic solution. Now suppose I start from A as rootNode in tree structure and propertyGrid.SelectedObject = A, how will I access properties of class C.
In real world context suppose I need to find "x" using property grid and tree structure. The output should highlight x and its value in propertygrid.

sample code::

Class A

{

B b { get; set;}

}

Class B

{

C c { get; set;}

}

Class C

{

int x { get; set;}

float y { get; set;}

string z { get; set;}

}

int main()

{

A a = new A();

propertyGrid.SelectedObject = a;

}

How will I access x,y,z name and value using propertygrid.

I am stuck here, please help.
AnswerRe: "Find" name or value of property in Property Grid (property grid is tree structure) Pin
fjdiewornncalwe27-Feb-12 4:01
professionalfjdiewornncalwe27-Feb-12 4:01 
GeneralRe: "Find" name or value of property in Property Grid (property grid is tree structure) Pin
kashme27-Feb-12 4:12
kashme27-Feb-12 4:12 
GeneralRe: "Find" name or value of property in Property Grid (property grid is tree structure) Pin
Subin Mavunkal28-Feb-12 2:26
Subin Mavunkal28-Feb-12 2:26 
AnswerRe: "Find" name or value of property in Property Grid (property grid is tree structure) Pin
Shameel27-Feb-12 4:31
professionalShameel27-Feb-12 4:31 
QuestionCosmos C# Pin
Ahmed Yosri27-Feb-12 2:52
Ahmed Yosri27-Feb-12 2:52 
AnswerRe: Cosmos C# Pin
Pete O'Hanlon27-Feb-12 2:59
mvePete O'Hanlon27-Feb-12 2:59 
AnswerRe: Cosmos C# Pin
OriginalGriff27-Feb-12 3:35
mveOriginalGriff27-Feb-12 3:35 
Questionbig database on sqlCE - it Takes a long time to open connection Pin
goldsoft27-Feb-12 1:53
goldsoft27-Feb-12 1:53 
AnswerRe: big database on sqlCE - it Takes a long time to open connection Pin
Dave Kreskowiak27-Feb-12 2:10
mveDave Kreskowiak27-Feb-12 2:10 
QuestionMonitor Exchange Server 2007 Pin
Sebastian T Xavier26-Feb-12 23:21
Sebastian T Xavier26-Feb-12 23:21 
AnswerRe: Monitor Exchange Server 2007 Pin
phil.o26-Feb-12 23:43
professionalphil.o26-Feb-12 23:43 
GeneralRe: Monitor Exchange Server 2007 Pin
Sebastian T Xavier27-Feb-12 0:06
Sebastian T Xavier27-Feb-12 0:06 
GeneralRe: Monitor Exchange Server 2007 Pin
Dave Kreskowiak27-Feb-12 2:06
mveDave Kreskowiak27-Feb-12 2:06 
Questionconvert types from IronPython to C# Pin
lune1226-Feb-12 22:19
lune1226-Feb-12 22:19 
AnswerRe: convert types from IronPython to C# Pin
Abhinav S26-Feb-12 23:32
Abhinav S26-Feb-12 23:32 
AnswerRe: convert types from IronPython to C# Pin
Sentenryu28-Feb-12 0:08
Sentenryu28-Feb-12 0:08 
GeneralRe: convert types from IronPython to C# Pin
lune1228-Feb-12 0:55
lune1228-Feb-12 0:55 

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.