im trying to create a nullable DateTimePicker which can optionally show some hint text when the control is marked as having a null date.. to achieve this, ive inherited from DateTimePicker and added a Label control with hint text that covers the text part when the control is marked as having a null date.. the problem is that if the DateTimePicker is set to display the usual calender icon, the width of this button is VARIABLE..
the images below show the same DateTimePicker control with different sizes.. as soon as the calender icon button starts to overlap the text, it is changed to a smaller, simple dropdown icon button..
i can try using reflection to read/write private fields but im at a loss as to what to read..
my question.. how do i find out the width of the calender icon displayed in the DateTimePicker control correctly..