Set in design mode only

  • Thread starter Thread starter Dom
  • Start date Start date
D

Dom

Sometimes, we I set a control's property in run-time, I get the
message "value can only be set in design mode", or something like
that.

How can I do this for a property in my custom control? That is, I
want the property set only in design time, and never in run-time.
 
Sometimes, we I set a control's property in run-time, I get the
message "value can only be set in design mode", or something like
that.

How can I do this for a property in my custom control?  That is, I
want the property set only in design time, and never in run-time.

[DesignOnly(true)]
 
Back
Top