title: vb.net Setting tabcontrol to read-only
body: <p>I'm trying to set my <strong>tabControl1</strong> to read-only, but for some reason this is not working for me.</p>
  
  <pre><code>tabControl1.TabPages.IsReadOnly = True
  </code></pre>
  
  <p>gives me this error:</p>
  
  <pre><code>Error   1   Property 'IsReadOnly' is 'ReadOnly'.
  </code></pre>
  
  <p>When i try:</p>
  
  <pre><code>tabControl1.TabPages.ReadOnly = True
  </code></pre>
  
  <p>it gives me this error:</p>
  
  <pre><code>Error   1   'ReadOnly' is not a member of 'System.Windows.Forms.TabControl.TabPageCollection'.
  </code></pre>
  
  <p>Whats wrong?</p>