Set in design mode only

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.
 
I

Israel

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)]
 

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

Top