S
Steve Barnett
I have created a user control that includes the following field:
[Browsable(true)]
protected TreeColumn[] columns = new TreeColumn[3];
This is accessed via an accessor as follows:
pubilc TreeColumn[] Columns
{
get { return columns; }
set { columns = value; }
}
Now, at design time, I can see the "Columns" property in the property editor
and I can expand it to show three items. However, I want to be able to
change the values of these three columns, but VS has made them read only, so
will not let me make any changes.
Any suggestions as to how I get access to the public properties of the
TreeColum class?
On a second point, I get a button I can click that opens the collection
editor. This gives me add and remove buttons that are not helpful. I need my
array fixed at 3 items. Pressing the add button causes an error message -
can I either suppress the collection editor or can I remove these buttons?
Thanks
Steve
[Browsable(true)]
protected TreeColumn[] columns = new TreeColumn[3];
This is accessed via an accessor as follows:
pubilc TreeColumn[] Columns
{
get { return columns; }
set { columns = value; }
}
Now, at design time, I can see the "Columns" property in the property editor
and I can expand it to show three items. However, I want to be able to
change the values of these three columns, but VS has made them read only, so
will not let me make any changes.
Any suggestions as to how I get access to the public properties of the
TreeColum class?
On a second point, I get a button I can click that opens the collection
editor. This gives me add and remove buttons that are not helpful. I need my
array fixed at 3 items. Pressing the add button causes an error message -
can I either suppress the collection editor or can I remove these buttons?
Thanks
Steve