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
 

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

Back
Top