DropDownList Shape RoundRect c#

3 posts, 1 answers
  1. Davide
    Davide avatar
    5 posts
    Member since:
    Apr 2012

    Posted 11 May 2012 Link to this post

    Hi there,

    I am writing to you to understand if you could help me as to the following.


    Currently I am developing an application and I am exploiting RAD WinControls in C#.

    In one form I have a few text boxes with the TextBoxElement.Shape set to RoundRect.


    I would need to do the same in a couple of dropdown lists and in one datetime picker.

    Therefore I am trying to set the related properties in the same way:

    e.g. ddlDropDown.DropDownListElement.Shape = new Telerik.WinControls.RoundRectShape();


    Yet in this case the displayed items show some white angles (see attachment)


    Would you please help me to understand how to fix that, i.e. how to delete or hide the white angles?


    Thanks in advance for your kind collaboration

    Best regards



  2. Answer
    Peter avatar
    1148 posts

    Posted 15 May 2012 Link to this post

    Hi Davide,

    Thank you for writing.

    You should set RootElement's ApplyShapeToControl property to true,
    this.RootElement.ApplyShapeToControl = true;

    and apply RoundRect shape to the ArrowButton's TopRight corner and ArrowButton's BottomRight corner:
    radDropDownList.RootElement.Shape = new RoundRectShape();
    radDropDownList.DropDownListElement.Shape = new RoundRectShape();
    radDropDownList.RootElement.ApplyShapeToControl = true;
    radDropDownList.DropDownListElement.ArrowButton.Shape = new RoundRectShape(4, false, false, true, true);

    Please, refer to the attached project.

    I hope this helps.

    the Telerik team
    RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
  3. DevCraft R3 2016 release webinar banner
  4. Davide
    Davide avatar
    5 posts
    Member since:
    Apr 2012

    Posted 18 May 2012 Link to this post

    It works fine.

    Thank you for your help.
Back to Top