ToolBar.Buttons is Read-Only in property sheet in VS 2005 in inherited control

  • Thread starter Thread starter Ryan Liu
  • Start date Start date
R

Ryan Liu

I have a control with a toolbar on it, and I have another control inherits
it, and in this sub-control, I add more toobar buttons to it.

It used to work fine in VS 2003. But in VS 2005, in property sheet, it
shows: read only.

Is this a bug or desiged so in VS 2005?

Thanks and Happy new year!


~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.

Ryan Liu
Shanghai Fengpu Software Co. Ltd
Shanghai , China

http://www.PowerCATI.com Powerful CATI!
http://www.fpsoft.net.cn
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.
 
Ryan,

Have you changed the visibility of the control on the base class?
Perhaps from protected/internal to private?
 
Nicholas Paldino said:
Ryan,

Have you changed the visibility of the control on the base class?
Perhaps from protected/internal to private?

Nicholas ,
I checked, it is still protected. This subcontrol used to work, I just want
to add 2 more toobarButtons to it after I added a dozen last time in VS
2003.

Thanks,

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Ryan Liu said:
I have a control with a toolbar on it, and I have another control inherits
it, and in this sub-control, I add more toobar buttons to it.

It used to work fine in VS 2003. But in VS 2005, in property sheet, it
shows: read only.

Is this a bug or desiged so in VS 2005?

Thanks and Happy new year!


~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.

Ryan Liu
Shanghai Fengpu Software Co. Ltd
Shanghai , China

http://www.PowerCATI.com Powerful CATI!
http://www.fpsoft.net.cn
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.
 
Back
Top