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 04:12 PM UTC

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 06:51 PM UTC

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.
Up arrow icon