title: C# tabControl DrawFixed
body: <p>I'm using TabControl and I have DrawFixed. I just want only draw the tabs not the panel under it.</p>
  
  <p><img src="https://i.stack.imgur.com/Ch7ec.png" alt="tabControl panel"></p>
  
  <p>How can I remove it?</p>
  
  <p>Also I'd like to ask, can I change tabs size? I've long text which I'd like see all if it's selected but I'd like see it cropped if it's not active.</p>
  
  <p>I've following in draw event, but it always draws the tab in the same size.</p>
  
  <pre><code>if (e.State == DrawItemState.Selected)
  {
      e.Graphics.FillRectangle(Brushes.White, e.Bounds.Left, e.Bounds.Top, e.Bounds.Width, e.Bounds.Height);
  }
  else
  {
      e.Graphics.FillRectangle(Brushes.LightGray, e.Bounds.Left, e.Bounds.Top, e.Bounds.Width, e.Bounds.Height);
      text = text.Length &gt; 10 ? text.Substring(0, 10) + "..." : text;
  }
  
  e.Graphics.DrawString(text, e.Font, Brushes.Black, e.Bounds.Left + 17, e.Bounds.Top + 3);
  </code></pre>
  
  <p>Thanks in advance.</p>