How to keep designer from setting property values?

  • Thread starter Thread starter barker7
  • Start date Start date
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
 
Try setting the Browsable attribute to False. This will also keep the
property from showing in the property grid.

Tony
 
Back
Top