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

Re: code generation for property failed? by Mattias

Mattias
Wed Nov 19 14:46:10 CST 2003

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

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/
Please reply only to the newsgroup.