Click here to Skip to main content
15,880,608 members
Home / Discussions / C#
   

C#

 
AnswerRe: regarding the coding Pin
Robert Rohde20-Apr-06 22:38
Robert Rohde20-Apr-06 22:38 
Questionschedulling Pin
g00fyman20-Apr-06 18:17
g00fyman20-Apr-06 18:17 
AnswerRe: schedulling Pin
Robert Rohde20-Apr-06 22:44
Robert Rohde20-Apr-06 22:44 
QuestionCheck box in a Listview column header possible? Pin
Diana Fernandez20-Apr-06 17:59
Diana Fernandez20-Apr-06 17:59 
AnswerRe: Check box in a Listview column header possible? Pin
gubber21-Apr-06 3:16
gubber21-Apr-06 3:16 
Questiongetting hyperlink Pin
genx_code20-Apr-06 17:16
genx_code20-Apr-06 17:16 
AnswerRe: getting hyperlink Pin
Robert Rohde20-Apr-06 22:46
Robert Rohde20-Apr-06 22:46 
QuestionUsing PropertyGrid and Collection Editor Pin
JuanAlbertoMD20-Apr-06 11:29
JuanAlbertoMD20-Apr-06 11:29 
Hello,

I have 3 classes for example :

public MainClass
{
private int maximum = 100;
private int minimum = 0;
private int valueC = 50;

[Browsable(true)]
public int Maximum
{
get {return maximum ;}
set {maximum =value;}
}

[Browsable(true)]
public int Minimum
{
get {return minimum ;}
set {minimum =value;}
}

[Browsable(true)]
public int ValueC
{
get {return valueC ;}
set {valueC=value;}
}

public MainClass()
{
}
}

public ElementsClass
{
private PropertiesClass elementsProperties;

[Browsable(true)]
public PropertiesClass ElementsProperties
{
get {return elementsProperties;}
set {elementsProperties =value;}
}

public ElementClass()
{
}
}

public PropertiesClass
{
private bool visible = true;
private Color colorC = Color.Black;
private bool blink = true;

[Browsable(true)]
public bool Visible
{
get {return visible;}
set {visible =value;}
}

[Browsable(true)]
public Color ColorC
{
get {return colorC;}
set {colorC=value;}
}

[Browsable(true)]
public bool Blink
{
get {return blink;}
set {blink=value;}
}

public PropertiesClass()
{
}
}

In the MainClass i want to include a ElementClass property but i must be able to have an ElementClass array or collection and each ElementClass has the 3 PropertiesClass properties.

What i don't know how to do Confused | :confused: is the next:

I want to show the MainClass properties in a PropertyGrid, the ElementsClass data must open a new window like a collection editor showing a list of all the ElementsClass objects that i have created.
Finally when i select some element in the list, the propertyGrid must show the PropertiesClass properties (visible, colorC, blink).

Can somebody help me with this?

Regards,
Alberto Martinez
AnswerRe: Using PropertyGrid and Collection Editor Pin
Robert Rohde20-Apr-06 22:50
Robert Rohde20-Apr-06 22:50 
QuestionBoolean Optimization Pin
Drew McGhie20-Apr-06 11:27
Drew McGhie20-Apr-06 11:27 
AnswerRe: Boolean Optimization Pin
User 665820-Apr-06 11:51
User 665820-Apr-06 11:51 
AnswerRe: Boolean Optimization Pin
Guffa20-Apr-06 11:58
Guffa20-Apr-06 11:58 
QuestionThreads and ProgressBar Pin
achrafus20-Apr-06 11:01
achrafus20-Apr-06 11:01 
AnswerRe: Threads and ProgressBar Pin
Ed.Poore20-Apr-06 12:13
Ed.Poore20-Apr-06 12:13 
AnswerRe: Threads and ProgressBar Pin
mikanu20-Apr-06 18:03
mikanu20-Apr-06 18:03 
Questionhow set a orginate time of Unix timpstamp value?? Pin
Real Coder20-Apr-06 10:05
Real Coder20-Apr-06 10:05 
Questionhow to save some file path in sql server 2000? Pin
nomsnoms20-Apr-06 9:23
nomsnoms20-Apr-06 9:23 
GeneralRe: how to save some file path in sql server 2000? Pin
Guffa20-Apr-06 9:34
Guffa20-Apr-06 9:34 
QuestionD3D device problem - DirectX Pin
victor_ba8520-Apr-06 8:41
victor_ba8520-Apr-06 8:41 
AnswerRe: D3D device problem - DirectX Pin
Judah Gabriel Himango20-Apr-06 12:43
sponsorJudah Gabriel Himango20-Apr-06 12:43 
QuestionHELP! I'm stuck! Access credentials for network share Pin
chrisk7720-Apr-06 8:38
chrisk7720-Apr-06 8:38 
QuestionImporting MS Access Report in Crystal Reports XI Pin
Code Toad20-Apr-06 8:06
Code Toad20-Apr-06 8:06 
Questionprinting in a right-to-left language Pin
Green Fuze20-Apr-06 7:14
Green Fuze20-Apr-06 7:14 
QuestionInvert Bitmap Pin
sergestusxx20-Apr-06 7:11
sergestusxx20-Apr-06 7:11 
AnswerRe: Invert Bitmap Pin
LongRange.Shooter20-Apr-06 7:42
LongRange.Shooter20-Apr-06 7:42 

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.