i found a VB version here:
http://www.onteorasoftware.com/VBControls.aspx#AnsTQ1
csharp version:
//Dont forget to set tabControl's drawMode to ownerDrawFixed..
private void tabControl1_DrawItem(object sender,
System.Windows.Forms.DrawItemEventArgs e)
{
Graphics g = e.Graphics ;
TabPage tp = tabControl1.TabPages[e.Index] ;
StringFormat sf = new StringFormat();
RectangleF r = new RectangleF(e.Bounds.X, e.Bounds.Y + 2, e.Bounds.Width,
e.Bounds.Height - 2);
sf.Alignment = StringAlignment.Center ;
string strTitle = tp.Text;
Brush br = new SolidBrush(Color.Red) ;
g.FillRectangle(br, e.Bounds);
g.DrawString(strTitle, tabControl1.Font, Brushes.White, r, sf) ;
}
thnx anyway..
"yener" <yy@ss.com> wrote in message
news:OM**************@tk2msftngp13.phx.gbl...
i can't change the color of caption of tabpages..
is there way to do that?