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. Image for the cookie policy date

Width of DateTimePickerAdv

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!

2 Replies

AD Administrator Syncfusion Team 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.


RM Ross Micheals 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.

Loader.
Live Chat Icon For mobile
Up arrow icon