code generation for property failed?

  • Thread starter Thread starter Michael Lang
  • Start date Start date
M

Michael Lang

I created a custom control for viewing and editing an instance of my Matrix
class. It has a property called Matrix of type Matrix. It is a property I
want to use at run-time... I don't expect it to be set at design time.

Isn't there an attribute I can apply to a control's property so that the
code generator will not try and set a value for it, and so it cannot be set
via the control's property window?

Michael Lang
 
Michael,
Isn't there an attribute I can apply to a control's property so that the
code generator will not try and set a value for it, and so it cannot be set
via the control's property window?

Check out the EditorBrowsableAttribute and
DesignerSerializationVisibilityAttribute.

microsoft.public.dotnet.framework.windowsforms.designtime is a better
group for questions about this.



Mattias
 
Back
Top