using System.Windows.Forms;
using System.Drawing;
class NewToolStrip: ToolStrip
{
protected override void OnPaint(PaintEventArgs e)
{
if (this.RenderMode == ToolStripRenderMode.System)
{
Rectangle rect = new Rectangle(0, 0, this.Width, this.Height - 2);
e.Graphics.SetClip(rect);
}
base.OnPaint(e);
}
}
或者在根據相應的toolstrip觸發paint事件
///