inherite toolstrip problem

J

jincheng

I add a toolstrip control on a windows form, set it's modifiers as
protected.
Then I add another form which inherited from the first one.
But the property of the toolstrip on the second form is readonly.
Why?
 
L

Linda Liu [MSFT]

Hi,

Thank you for posting.

Form designer doesn't allow to modify properties of all new for .Net
Framework 2.0 controls(ToolStrip, MenuStrip, ContextMenuStrip, StatusStrip,
TableLayoutPanel, FlowLayoutPanel, DataGridView, BindingNavigator)
belonging to inherited form even if the value of access modifier on
parental form has been established to public or protected. Nevertheless all
these properties can be modified in the program code of inherited form.

This is a known design time limitation in Visual Studio 2005 release.
Microsoft will look at improving this in future versions. Although you
couldn't modify the toolstrip in the property window in the inherited form,
you could access the toolstrip in code.



Sincerely,
Linda Liu
Microsoft Online Community Support

====================================================
When responding to posts,please "Reply to Group" via
your newsreader so that others may learn and benefit
from your issue.
====================================================
 

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