I add a ToolStrip
control to a forms and docking it to Top. My problem is I can't remove a white shadow from the ToolStrip
. I even tried to paint all around the ToolStrip
but it does not work. How can I do that.
Here is some of my code :
private void toolStripEx1_Paint(object sender, PaintEventArgs e)
{
e.Graphics.DrawRectangle(new Pen(new SolidBrush(Color.Red)), e.ClipRectangle);
}
and this does not work neither with a custom rendrer.
protected override void OnRenderToolStripBorder(ToolStripRenderEventArgs e)
{
if (e.ToolStrip.GetType().Name != "toolStripEx1")
{
base.OnRenderToolStripBorder(e);
}
}