PC Review


Reply
Thread Tools Rate Thread

DateTimePicker focus

 
 
jrad
Guest
Posts: n/a
 
      5th Jan 2010
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
 
Reply With Quote
 
 
 
 
Paul G. Tobey [eMVP]
Guest
Posts: n/a
 
      6th Jan 2010
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.

"jrad" wrote:

> 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
> .
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ComboBox DateTimePicker Binding Focus Bug / Mess Simon Tamman Microsoft C# .NET 3 15th Mar 2007 09:05 PM
Focus problem with .net 2.0 DateTimePicker with checkbox enabled micklang@gmail.com Microsoft Dot NET Framework Forms 3 8th Feb 2007 11:57 PM
DateTimePicker focus - doesn't have it.... Robinson Microsoft VB .NET 1 21st Sep 2006 05:13 PM
DataBinding using Strongly Typed Datasets. Binding to a DateTimePicker and Combobox - Focus on Leave bug Uchiha Jax Microsoft C# .NET 0 8th May 2005 08:50 PM
DateTimePicker focus problem in Smartphone PR Microsoft Dot NET Compact Framework 1 24th Oct 2004 01:16 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:59 AM.