J
Joe Feser
I have a control that extends UserControl
I have added a few properties to this control
[
Category("Skinning"),
Description("Test description.")
]
public bool Clickable
{
get { return isClickable; }
set { isClickable = value; }
}// Clickable
When i drag the control onto a Form, VS.NET adds a line in teh
InitializeComponent method to set a default on that property
this.imageButton1.Clickable = true;
I am trying to figure out what attribute or other method is required to tell
VS.NET to not try to set the default value.
All I want is the control to act like a regular control, by setting the name
and size property, but to leave all other properties alone.
I want the item to still show up in the Properties box if possible.
Can this be done without using browsable=false?
Thank you
Joe Feser
I have added a few properties to this control
[
Category("Skinning"),
Description("Test description.")
]
public bool Clickable
{
get { return isClickable; }
set { isClickable = value; }
}// Clickable
When i drag the control onto a Form, VS.NET adds a line in teh
InitializeComponent method to set a default on that property
this.imageButton1.Clickable = true;
I am trying to figure out what attribute or other method is required to tell
VS.NET to not try to set the default value.
All I want is the control to act like a regular control, by setting the name
and size property, but to leave all other properties alone.
I want the item to still show up in the Properties box if possible.
Can this be done without using browsable=false?
Thank you
Joe Feser