How do I get rid of this ugly line?
Draw a default bindingnavigator on an empty Form and you will see the problem. RenderMode is ManagerRenderMode. I want this render mode so the mouse over colors is correct. However, If I switch to System as rendermode the ugly line disapears, but then mouse over color/effect gets ugly.
I have been looking around for a solution for some time now, but nothing. Maybe someone here have seen this problem before?
It's not a
BindingNavigator
specific issue, but theToolStrip
whichBindingNavigator
inherits.It's caused by the
DrawToolStripBorder
method when theToolStripProfessionalRenderer
classRoundedEdges
property istrue
(the default).In order to turn it off, I can suggest the following helper method:
Now you can turn it off for the specific control (it's not available at design time, so it has to be at run time inside your form/control constructor or load event):
or to disable it globally, add the following in your
Main
method before callingApplication.Run
: