以下是解决方法:
1.直接新建一个类,继承TabControl,然后 override DisplayRectangle 方法:
复制代码 代码如下:
/// <summary>
/// 解决系统TabControl多余边距问题
/// </summary>
public class FullTabControl : TabControl {
public override Rectangle DisplayRectangle {
get {
Rectangle rect = base.DisplayRectangle;
return new Rectangle(rect.Left - 4, rect.Top - 4, rect.Width + 8, rect.Height + 7);
}
}
}
以后用 FullTabControl 就行。(这种方法简单)
2.参见以下网址(VB.NET)代码:
http://
