Click here to Skip to main content
16,013,322 members
Home / Discussions / C#
   

C#

 
GeneralRe: Anakrino Pin
Rocky Moore10-Jun-02 18:51
Rocky Moore10-Jun-02 18:51 
GeneralRe: Anakrino Pin
Rüpel10-Jun-02 19:46
Rüpel10-Jun-02 19:46 
GeneralWebBrowser in .NET Applications Pin
10-Jun-02 1:32
suss10-Jun-02 1:32 
GeneralRe: WebBrowser in .NET Applications Pin
AndyG10-Jun-02 4:01
AndyG10-Jun-02 4:01 
GeneralRe: WebBrowser in .NET Applications Pin
Richard Deeming11-Jun-02 4:25
mveRichard Deeming11-Jun-02 4:25 
GeneralDisplaying sub Properties in PropertyGrid Pin
leppie10-Jun-02 0:51
leppie10-Jun-02 0:51 
GeneralRe: Displaying sub Properties in PropertyGrid Pin
Mazdak10-Jun-02 1:06
Mazdak10-Jun-02 1:06 
GeneralRe: Displaying sub Properties in PropertyGrid Pin
leppie10-Jun-02 1:14
leppie10-Jun-02 1:14 
Sorry i have no clue what you are trying to explain, but thx for the quick answer.

OK, lemme explain a bit more. I have a Button control with a Borders Property. Borders is a class (see below). I would like to individually edit the properties of all Properties within Borders at DESIGN TIME.


Here's the code:

<br />
public class Border<br />
{<br />
	int width;<br />
	int margin;<br />
	Color colorNormal;<br />
	Color colorOver;<br />
	Color colorDown;<br />
	ButtonBorderStyle style;<br />
<br />
	public Border()<br />
	{<br />
		//default<br />
		width = 1;<br />
		margin = 1;<br />
		colorNormal = Colors.borderColorNormal;<br />
		colorOver = Colors.borderColorOver;<br />
		colorDown = Colors.borderColorDown;<br />
		style = ButtonBorderStyle.Solid;<br />
	}<br />
<br />
	public ButtonBorderStyle Style <br />
	{<br />
		get {return this.style;}<br />
		set {this.style = value;}<br />
	}<br />
<br />
	public int Width <br />
	{<br />
		get {return this.width;}<br />
		set {this.width = value;}<br />
	}<br />
<br />
	public int Margin <br />
	{<br />
		get {return this.margin;}<br />
		set {this.margin = value;}<br />
	}<br />
<br />
	public Color ColorNormal <br />
	{<br />
		get {return this.colorNormal;}<br />
		set {this.colorNormal = value;}<br />
	}<br />
<br />
	public Color ColorOver <br />
	{<br />
		get {return this.colorOver;}<br />
		set {this.colorOver = value;}<br />
	}<br />
<br />
	public Color ColorDown <br />
	{<br />
		get {return this.colorDown;}<br />
		set {this.colorDown = value;}<br />
	}<br />
<br />
}<br />
<br />
public class Borders<br />
{<br />
	Border left;<br />
	Border right;<br />
	Border top;<br />
	Border bottom;<br />
<br />
	public Borders()<br />
	{<br />
		//default<br />
		this.left = new Border();<br />
		this.right = new Border();<br />
		this.top = new Border();<br />
		this.bottom = new Border();<br />
	}<br />
<br />
	public Border Left <br />
	{<br />
		get {return this.left;}<br />
		set {this.left = value;}<br />
	}<br />
<br />
	public Border Right <br />
	{<br />
		get {return this.right;}<br />
		set {this.right = value;}<br />
	}<br />
<br />
	public Border Top<br />
	{<br />
		get {return this.top;}<br />
		set {this.top = value;}<br />
	}<br />
<br />
	public Border Bottom <br />
	{<br />
		get {return this.bottom;}<br />
		set {this.bottom = value;}<br />
	}<br />
<br />
	public override string ToString()<br />
	{<br />
		return "Click to expand...";<br />
	}<br />
}<br />


Now i would like to get that "+" sign on the propertygrid next to the Property so i can access all subitems.

Thanx

stillConfused | :confused:
GeneralRe: Displaying sub Properties in PropertyGrid Pin
Rama Krishna Vavilala10-Jun-02 1:48
Rama Krishna Vavilala10-Jun-02 1:48 
GeneralRe: Displaying sub Properties in PropertyGrid Pin
leppie10-Jun-02 1:48
leppie10-Jun-02 1:48 
GeneralRe: Displaying sub Properties in PropertyGrid Pin
James T. Johnson10-Jun-02 2:21
James T. Johnson10-Jun-02 2:21 
GeneralRe: Displaying sub Properties in PropertyGrid Pin
leppie10-Jun-02 3:43
leppie10-Jun-02 3:43 
GeneralRe: Displaying sub Properties in PropertyGrid Pin
James T. Johnson10-Jun-02 11:15
James T. Johnson10-Jun-02 11:15 
GeneralRe: Displaying sub Properties in PropertyGrid Pin
leppie10-Jun-02 11:44
leppie10-Jun-02 11:44 
Generaldetecting a key press... Pin
8-Jun-02 16:28
suss8-Jun-02 16:28 
GeneralRe: detecting a key press... Pin
Nick Parker8-Jun-02 18:55
protectorNick Parker8-Jun-02 18:55 
GeneralRe: detecting a key press... Pin
Nish Nishant8-Jun-02 19:25
sitebuilderNish Nishant8-Jun-02 19:25 
GeneralRe: detecting a key press... Pin
Nick Parker8-Jun-02 19:34
protectorNick Parker8-Jun-02 19:34 
GeneralRe: detecting a key press... Pin
Rama Krishna Vavilala9-Jun-02 1:03
Rama Krishna Vavilala9-Jun-02 1:03 
GeneralRe: detecting a key press... Pin
9-Jun-02 5:11
suss9-Jun-02 5:11 
GeneralRe: detecting a key press... Pin
Humpo9-Jun-02 7:24
Humpo9-Jun-02 7:24 
GeneralRe: detecting a key press... Pin
Rama Krishna Vavilala9-Jun-02 9:58
Rama Krishna Vavilala9-Jun-02 9:58 
GeneralRe: detecting a key press... Pin
Rama Krishna Vavilala9-Jun-02 10:01
Rama Krishna Vavilala9-Jun-02 10:01 
GeneralRe: detecting a key press... Pin
9-Jun-02 11:49
suss9-Jun-02 11:49 
GeneralRe: detecting a key press... Pin
Humpo9-Jun-02 12:04
Humpo9-Jun-02 12:04 

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.