code_junkie

Why doesn't BackColor work for TabControls in .NET?

Nov 10th, 2011
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. ...
  2.  
  3. Dim r As Rectangle = tabControl1.GetTabRect(tabControl1.TabPages.Count-1)
  4. Dim rf As RectangleF = New RectangleF(r.X + r.Width, r.Y - 5, tabControl1.Width - (r.X + r.Width), r.Height + 5)
  5. Dim b As Brush = New SolidBrush(Color.White)
  6. e.Graphics.FillRectangle(b, rf)
  7.  
  8. ...
Add Comment
Please, Sign In to add comment