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.
Unfortunately, activation email could not send to your email. Please try again.

Can you adjust height of ComboBoxAdv?

Thread ID:





78586 Dec 18,2008 01:20 PM Dec 18,2008 10:38 PM Windows Forms 2
Tags: Tools
James Montemagno
Asked On December 18, 2008 01:20 PM

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 01:54 PM

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 18, 2008 10:38 PM

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.

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.