I've done some styling on a bindingnavigator toolstrip in my C# winforms app (VS2010), principally setting the background colour and getting rid of dividers. It now looks like this...
My question is how do I get rid of the "drop shadow" effect I.e. the white single pixel lines below and to the right of the toolstrip. I've tried tweaking the size, margins and padding of both the bindingnavigator itself and its member items but without success.
Create a
SystemRenderer
:..and then make use of it in your
ToolStrip
class in its constructor:If this isn't an inherited
ToolStrip
control, but instead a stock control from Designer, then look in theDesigner.cs
file for the lines that set ToolStrip properties. In mine it looks like this:Add to that, this line:
**Note that you could add that same line to the form's constructor if you like. Same effect.