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

[{'answer_id': 29717, 'author': 'Will Dean', 'author_id': 987, 'author_profile': 'https://Stackoverflow.com/users/987', 'pm_score': 3, 'selected': False, 'text': '<p>Add the following attributes to the property in your control:</p>\n\n<pre><code>[Browsable(false), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]\n</code></pre>\n'}, {'answer_id': 29720, 'author': 'Erik Hellström', 'author_id': 2795, 'author_profile': 'https://Stackoverflow.com/users/2795', 'pm_score': 7, 'selected': True, 'text': '<p>Use the DesignerSerializationVisibilityAttribute on the properties that you want to hide from the designer serialization and set the parameter to Hidden.</p>\n\n<pre><code>[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]\npublic string Name\n{\n    get;\n    set;\n}\n</code></pre>\n'}, {'answer_id': 20068998, 'author': '27k1', 'author_id': 835921, 'author_profile': 'https://Stackoverflow.com/users/835921', 'pm_score': -1, 'selected': False, 'text': "<p>A slight change to Erik's answer I am using VS 2013.</p>\n\n<pre><code>[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]\npublic new string Name { \n    get; \n    set; \n}\n</code></pre>\n"}]
['https://Stackoverflow.com/questions/29696', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2253/']