Ah, not the actual tabs but the blank area. How about drawing over it using the Graphics namespace? Since it probably doesnt
move or resize it should be easy to cover it with a color or gradient you want.
I have worked on it, but don't see why it doesn't work. using mouse move events, it appears the the blank region is part of the form (at least it responds to form events so I have tried this code
VB Code:
Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles MyBase.Paint
Dim fb As New SolidBrush(Color.Black) 'Me.BackColor)
Dim LastTabRect As Rectangle = TabControl1.GetTabRect(TabControl1.TabPages.Count - 1)
Dim Rect As Rectangle
Rect.Location = New Point(LastTabRect.Right + TabControl1.Left, TabControl1.Top)
Rect.Size = New Size(TabControl1.Right - Rect.Left, LastTabRect.Height)
based on the mousemove feedback, the rectanlge looks like it's in the right spot, but it doesn't paint over the blank area. Can you see what's wrong? Maybe I'm painting on the wrong object?
here's the project too.
thanks
kevin
Process control doesn't give you good quality, it gives you consistent quality.
Good quality comes from consistently doing the right things.
Vague general questions have vague general answers.
A $100 donation is required for me to help you if you PM me asking for help. Instructions for donating to one of our local charities will be provided.
______________________________
Last edited by kebo : Now. Reason: superfluous typo's