public override Rectangle DateTimePickerGetDateArea (DateTimePicker dateTimePicker)
{
Rectangle rect = dateTimePicker.ClientRectangle;
if (dateTimePicker.ShowUpDown) {
// set the space to the left of the up/down button
if (rect.Width > (DateTimePicker.up_down_width + 4)) {
rect.Width -= (DateTimePicker.up_down_width + 4);
} else {
rect.Width = 0;
}
} else {
// set the space to the left of the up/down button
// TODO make this use up down button
if (rect.Width > (SystemInformation.VerticalScrollBarWidth + 4)) {
rect.Width -= SystemInformation.VerticalScrollBarWidth;
} else {
rect.Width = 0;
}
}
rect.Inflate (-2, -2);
return rect;
}
public override bool DateTimePickerDropDownButtonHasHotElementStyle {