How to keep designer from setting property values?

B

barker7

I have a user control that has a few public properties. These
properties get set in the app at run time with arrays of data, but at
design time the designer insists on setting these values. For one
property it even tryies to create an entry in the resource file, which
cause a build error in the resourc file.

Is there anyway to tell the designer not to try to create values for a
property in InitializeComponent?

Thanks,

Mitch
 
G

Guest

Try setting the Browsable attribute to False. This will also keep the
property from showing in the property grid.

Tony
 

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