title: Disable setting of a property in winforms designer
body: <p>I'm using <a href="http://www.codeproject.com/Articles/12538/Y-et-A-nother-TabControl-A-Custom-Tab-Control-With" rel="nofollow">Yet Another TabControl</a> in my project - it's custom, open sourced TabControl with support for designer. After solving some of its problems, I've stumbled upon a problem I have no clue how to solve.</p>
  
  <p>When I run my application, YATabControl would select the same tab I selected in designer - which is not exactly what I want (I'd rather start with first tab) and I can't move through the tabs while application is running, because it tries to save property "SelectedIndex" on every change of tab.</p>
  
  <p>It is set on designers ~onclick using:</p>
  
  <pre><code>RaiseComponentChanging( TypeDescriptor.GetProperties( Control )[ "SelectedIndex" ] );  
  RaiseComponentChanged( TypeDescriptor.GetProperties( Control )[ "SelectedIndex" ], oi, i );(old index, index).
  </code></pre>
  
  <p>I'm thinking - is there a way to disable designer from setting runtime value of property? </p>