Hi Brad,
The problem with the width of the NDateTimePicker drop down button is because on machines running OS after XP and EnableVisualStyles is called there is additional calendar icon.
This make the button wider and we measure it so when we draw our button on top of the original to has the same size.
Currently, when the OS is higher than XP we take the width of SystemInformation.IconSize.Width + SystemInformation.BorderSize.Width * 2 to measure the width of our button.
We will add a additional condition to check whether EnableVisualStyles method was call to handle this case too.
To work around this problem you can override NDateTimePicker.GetDropDownButtonWidth method as follows:
protected override int GetDropDownButtonWidth()
{
if (System.Environment.OSVersion.Version.Major > 5 && Application.RenderWithVisualStyles == false)
{
return SystemInformation.VerticalScrollBarWidth;
}
return base.GetDropDownButtonWidth();
}
Hope this helps.
Best Regards,
Nevron Support Team