DateTimePicker focus

  • Thread starter Thread starter jrad
  • Start date Start date
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
 
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.
 
Back
Top