2 Attachment(s)
Rectangular Toolstrip corners
ToolStrip control appears in rounded corners/edges by default when the RenderMode is other than "System" and there is no direct property to change these corners to rectangular.
ToolStrip with rounded corners may seem ugly to people. I'm one of those. If you are also like me who wants perfect UI then below is the 3 line code that will give you the desired result.
vb.net Code:
If TypeOf ToolStrip1.Renderer Is ToolStripProfessionalRenderer Then
CType(ToolStrip1.Renderer, ToolStripProfessionalRenderer).RoundedEdges = False
End If
Attached are the Before & After images.
Re: Rectangular Toolstrip corners
Where should the code be placed? In the MDI Parent Load event?
Re: Rectangular Toolstrip corners
Quote:
Originally Posted by
jazFunk
Where should the code be placed? In the MDI Parent Load event?
Yes, Form Load is the appropriate place for that code.