这个其实可以做,
先在窗体的load事件中加:
tabControl1.DrawMode = TabDrawMode.OwnerDrawFixed;//设置为用户绘制方式
然后点击tabControl1的DrawItem事件中加如下代码:
private void tabControl1_DrawItem(object sender, DrawItemEventArgs e)
{
Rectangle tabArea = tabControl1.GetTabRect(e.Index);//主要是做个转换来获得TAB项的RECTANGELF
RectangleF tabTextArea = (RectangleF)(tabControl1.GetTabRect(e.Index));
Graphics g = e.Graphics;
StringFormat sf = new StringFormat();//封装文本布局信息
sf.LineAlignment = StringAlignment.Center;
sf.Alignment = StringAlignment.Near;
Font font = this.tabControl1.Font;
SolidBrush brush = new SolidBrush(Color.Black);//绘制边框的画笔
g.DrawString(((TabControl)(sender)).TabPages[e.Index].Text, font, brush, tabTextArea, sf);
}
就可以实现了,我做过,可以的,祝你成功!
这个简单,设置tabControl属性TabStripPlacement="Left"
你用第三方的吧,内置的不支持