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.

Width of DateTimePickerAdv

Thread ID:

Created:

Updated:

Platform:

Replies:

26358 Mar 21,2005 04:17 PM Mar 22,2005 01:51 PM Windows Forms 2
loading
Tags: Tools
Ross Micheals
Asked On March 21, 2005 04:17 PM

Is there a way to (programatically) get the width of a DateTimePickerAdv, *excluding* the checkbox and the DropDown? I want to programatically set the width of the control to accomdate a specific string length, but don''t want the checkbox or dropdown to occlude it. Thanks!

Administrator [Syncfusion]
Replied On March 22, 2005 11:12 AM

Hi Ross, The checkbox and DropDown both have a width of approximately 20, so if you just subtract 40 from DateTimePickerAdv.Size.Width you''ll have a good estimate of the space allowed for the text. Regards, Gregory Austin Syncfusion Inc.

Ross Micheals
Replied On March 22, 2005 01:51 PM

Thanks for the quick reply. >Hi Ross, > > The checkbox and DropDown both have a width of approximately 20, so if you just subtract 40 from DateTimePickerAdv.Size.Width you''ll have a good estimate of the space allowed for the text. > >Regards, >Gregory Austin >Syncfusion Inc.

CONFIRMATION

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.

;