Problem handling NETCF DateTimePicker in hardware

I am developing an application for compact frameworks on an emulator and some forms use DateTimePickers. They work fine in the emulator, but when running on hardware, they close the form when picking a date. No exception is thrown ... the form just closes unexpectedly. Has anyone experienced this or knows how to fix it?

+1


source to share


2 answers


Thanks for the suggestion ... but the regional settings are the same on emulator and device.



My solution was to set the ShowUpDown property of the DateTimePicker control to true to disable the popup calendar and allow the user to scroll through the values. This provides the same functionality without error, but lacks the visual appeal that a popup calendar does. If anyone has any other ideas for me please try letting me know otherwise this is a working solution.

0


source


On your device and emulator navigate to:

Home | Settings [System] | Regional settings [Date]



and see if both values ​​have the same settings for short date, date separator and long date. This is just a guess, but this is one of the possible differences between an emulator and a device, which at least has to do with the date picks. If they are different, try setting up your device in the same way as the emulator and see if you have a problem.

+1


source







All Articles