Why is the combobox height not the same as textbox height?

2 posts, 0 answers
  1. Per
    Per avatar
    116 posts
    Member since:
    Jan 2008

    Posted 18 Jun 2009 Link to this post

    Hi!

    I'm currently creating a gui containing both rad textbox controls and rad combobox controls.

    Since the combobox control does not have the same height as the textbox controls, lining them up is hard and makes the application look messy.

    If you place them next to each other you will see what i meen :)
    The text inside the controls is also not at the same height :(

    Why?

    Regards
    Per Bornsjö
  2. Mike
    Admin
    Mike avatar
    640 posts

    Posted 24 Jun 2009 Link to this post

    Hi Per,

    The ComboBox and TextBox appear with different size/font and layout settings because of their built-in themes. There is a workaround for this, however I suggest you to wait for couple of weeks and try out the upcoming release where we have corrected these issues.

    Here is the simplest workaround:

    this.radComboBox1.ComboBoxElement.TextBoxElement.Padding = new Padding(2, 2, 2, 3);


    Let me know if I can help you any further with this.

    Best wishes,
    Mike
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top