inherite toolstrip problem

  • Thread starter Thread starter jincheng
  • Start date Start date
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?
 
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.
====================================================
 
Back
Top