Results 1 to 3 of 3

Thread: Rectangular Toolstrip corners

Threaded View

  1. #1

    Thread Starter
    PowerPoster Deepak Sakpal's Avatar
    Join Date
    Mar 2002
    Location
    Mumbai, India
    Posts
    2,424

    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:
    1. If TypeOf ToolStrip1.Renderer Is ToolStripProfessionalRenderer Then
    2.     CType(ToolStrip1.Renderer, ToolStripProfessionalRenderer).RoundedEdges = False
    3. End If

    Attached are the Before & After images.
    Attached Images Attached Images   

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width