You might want to add type check to avoid missing border on ToolStripDropDownMenu/etc. (since inherited from ToolStrip, it starts same custom renderer usage automatically):
Missed ToolStripDropDownMenu border is not so noticable while using ToolStripSystemRenderer but become real eyesore with ToolStripProfessionalRenderer.
Also, setting System.Windows.Forms.ToolStripManager.Renderer = new MySR(); could be usefull if you want all ToolStrip instances appwide to use MySR by default.
You might want to add type check to avoid missing border on
ToolStripDropDownMenu
/etc. (since inherited fromToolStrip
, it starts same custom renderer usage automatically):Missed
ToolStripDropDownMenu
border is not so noticable while usingToolStripSystemRenderer
but become real eyesore withToolStripProfessionalRenderer
.Also, setting
System.Windows.Forms.ToolStripManager.Renderer = new MySR();
could be usefull if you want allToolStrip
instances appwide to useMySR
by default.It's a bug in the "system" renderer, details in this bug report.
Microsoft's response gives a very easy workaround:
1) Create a subclass of
ToolStripSystemRenderer
, overridingOnRenderToolStripBorder
and making it a no-op:2) Use that renderer for your toolstrip: