DateTimePicker focus problem in Smartphone

P

PR

Hi

I am having a problem with using the DateTimePicker control in a Smartphone
application. I am able to successfully create the DateTimePicker control.
The control show up properly on the screen. But the control does not get
into the edit mode where the user can input the date, month and year values.

Seems to me like DataTimePicker was not written with mouseless environments
in mind. The only way to get one of day/month/year fields highlighted is by
clicking with a mouse/stylus. Once the control gets into input mode (in
Pocket PC) we can navigate using the keyboard arrow keys. But I am not able
to do that programmatically (without mouse/stylus click) in Smartphone. I
have tried several things:
SetFocus, Send WM_LBUTTONDOWN, WM_LBUTTONUP messages, used mouse_event API
to simulate mouse click. But none of them worked so far.

Any info would be appreciated. Thanks.

PR
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top