I am creating a WinForms app that uses the DateTimePicker control, my dev machine is a Windows 7 machine, the control works fine, no problems or issues. But when I deploy this WinForm to an XP machine, and try to use the DateTimePicker control it opens up the calendar, but upon selection of a date the calendar does not go away as it does on my dev machine.
Please advise on how to rectify this.
Thanks in advance.
This is all I am doing when selecting a value from the DateTimePicker control:
private void dateTimePickerStartDate_ValueChanged(object sender, EventArgs e)
{
dateTimePickerStartDate.Format = DateTimePickerFormat.Long;
}
private void dateTimePickerEndDate_ValueChanged(object sender, EventArgs e)
{
dateTimePickerEndDate.Format = DateTimePickerFormat.Long;
}