We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Can you adjust height of ComboBoxAdv?

Thread ID:





78586 Dec 18,2008 06:20 PM UTC Dec 19,2008 03:38 AM UTC WinForms 2
Tags: Tools
James Montemagno
Asked On December 18, 2008 06:20 PM UTC

I am making a custom list view that you can put controls in. I am using a flat style for my controls to fit into the grids of the list view.

I need to bring down the height of the actual combobox to 13. I have to assume I need to custom paint the combobox to do this as they usually adjust for the font.

I am using

I have tried to override the OnPaint and do this:

PaintEventArgs args = new PaintEventArgs(e.Graphics, new Rectangle(e.ClipRectangle.X, e.ClipRectangle.Y, e.ClipRectangle.Width, 13));

however this doesn't actually do anything for the height, it still draws at the normal height. So can you adjust the height?? thanks.

James Montemagno
Replied On December 18, 2008 06:54 PM UTC

It seems like the real problem is that it draws this big border around the combobox. Is there a way to remove this? I tried this: this.Border3DStyle = Border3DStyle.Flat; and it didn't do anything. Let me know.

Administrator [Syncfusion]
Replied On December 19, 2008 03:38 AM UTC

Hi James,

Thank you for using Syncfusion products.

Add support to adjust height value of ComboBoxAdv.

Currently we don't have support for this feature in our code library. We have already logged a request in our feature management system and will update you once the feature is implemented.

Please let me know if any questions.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon