DateTimePicker focus

J

jrad

Hello,

I have a panel in a .NET CF app that contains a DateTimePicker and a
combobox.
My DateTimePicker custom format is 'MM/dd/YYYY'.
I would like to navigate to the combobox when the user presses the
'Right' key when the DTP is focused in the YYYY field.

I tried to look at the DTP.Controls[xxx].Focused property, but there
are no child controls in my DTP.
Any ideas as to how I can determine which field of a DTP has the
focus?

Thanks,
JR
 
P

Paul G. Tobey [eMVP]

There's the DTN_WMKEYDOWN message that the parent of the date time picker
control can handle. You might be able to use that by putting a "call-back
field" at the end of your custom format string and handling the right-arrow
key there. It would probably be easiest to play with this in native code
and, once you find the right set of operations, port that back to .NET CF.

Paul T.
 

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