A little more info on your situation is needed. The answers which others
have provided look like good answers to me. and is the reason that I have
not jumped in earlier. Perhaps you've asked the wrong question.
I take it you have an Inherited TabControl. Where and how are you doing the
painting?
you can get the tabcontrols Tabpage Rectangle by using:
Dim MyRect as Rectangle
If MyBase.TabCount > 0 Then
MyRect = Mybase.TabPages(0).Bounds
End If
Here's a link to some code for a complete Owner Draw Tab control that I
posted in the microsoft.public.dotnet.languages.vb.controls newsgroup.
news:uU**************@TK2MSFTNGP11.phx.gbl
Modify it to show the appearance that you want.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (
http://www.grisoft.com).
Version: 6.0.683 / Virus Database: 445 - Release Date: 12/05/2004