Results 1 to 3 of 3

Thread: Rectangular Toolstrip corners

  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   

  2. #2
    Hyperactive Member jazFunk's Avatar
    Join Date
    Dec 2008
    Location
    Palm Harbor
    Posts
    407

    Re: Rectangular Toolstrip corners

    Where should the code be placed? In the MDI Parent Load event?
    Things I've found useful:
    DateTime.ToString() Patterns | Retrieving and Saving Data in Databases | ADO.NET Data Containers: An Explanation

    Quote of the day from jmcilhinney:
    'Talking about Option Strict and Option Explicit in the same sentence is pointless unless it is to say that they should both be On.'

  3. #3

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