How to get width of button in DateTimePicker-Control/Controls in general?

Posted by Inno on Stack Overflow See other posts from Stack Overflow or by Inno
Published on 2009-07-30T14:58:45Z Indexed on 2010/04/08 21:03 UTC
Read the original article Hit count: 234

Filed under:
|
|
|

Hello everybody,

I implemented a custom DateTimePicker. On the DateTimePicker there is a button. In the examples I've found it's width is set to 16. This is working but I would like to have a dynamic approach.

So, is there a way to get the size of this button or is there a general way to get information about .Net-Control sub elements like size etc.?

Trying DateTimePicker.Controls didn't help me (it's empty).

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET