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

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
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.
 
N

Nicholas Paldino [.NET/C# MVP]

Ryan,

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

Ryan Liu

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
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top