摘要: 代码const int CLOSE_SIZE = 4;//清空控件this.MainTabControl.TabPages.Clear();//绘制的方式OwnerDrawFixed表示由窗体绘制大小也一样this.MainTabControl.DrawMode=TabDrawMode.OwnerDrawFixed;this.MainTabControl.Padding=newSystem.Drawing.Point(CLOSE_SIZE,CLOSE_SIZE);this.MainTabControl.DrawItem+=newDrawItemEventHandler(this.tabCont 阅读全文