<p>How do you stop the designer from auto generating code that sets the value for public properties on a user control?</p>

Add the following attributes to the property in your control:
```
```
[Browsable(false), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
```
```