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

DropDownButton bounds adjustment

Thread ID:





58738 Mar 27,2007 01:27 PM UTC Apr 3,2007 07:14 AM UTC WinForms 1
Tags: Tools
Ryan Hardoon
Asked On March 27, 2007 01:27 PM UTC

I have a customized combo derived from ComboDropDown which has a customized button derived from DropDownButton.
I override the OnPaint to draw a bitmap on the button.
g.DrawImage(theButtonImage, new Point(this.Bounds.X, this.Bounds.Y));

I have a small problem . I dont understand where the BOunds of the Button is determined. There seems to be a fixed bounds that cannot be modified. I tried adjusting the bounds to the bounds of the image , in the onPaint but the next time on paint is called I see the bounds returned to the original size.
Can anyone tell me how I can adjust the bounds of the button to the real bounds of the image


Poly J [Syncfusion]
Replied On April 3, 2007 07:14 AM UTC

Hi Ryan,

Thanks for your interest in Syncfusion products.

You can set the bounds for the dropdown button by overriding the UpdateDropDownButtonBounds method of combodropdown Class. Please refer to the attached sample in the following location and let me know if this is helpful for you.


Best Regards,


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