troubleshooting Question

How to move focus on date part of DateTimePicker ?

Avatar of Com1uk
Com1uk asked on
.NET ProgrammingVisual Basic.NET
7 Comments1 Solution6343 ViewsLast Modified:
Hi All,

We are working on the windows application. Just for example we have following 3 fields and controls on the form

1) User Name - TextBox

2) Start Date - DateTimePicker

3) End Date - DateTimePicker

We have added tabbing on it and its working.

Tabbing sequence is in the following order

User Name
Start Date
End Date


In the DateTimePicker we are showing date in following format

29 May 2012


When we press tab key first we get focus on "User Name" and then on "Start Date" DateTimePicker i.e. on the date part of "Start Date" now again we press tab key and focus moves to date part of "End Date" DateTimePicker. This is the tabbing cycle.

Now again we continue to press tab key and get focus on "Start Date" DateTimePicker. At this stage if we press right arrow key then month part of "Start Date" DateTimePicker get selected. If we again press tab key then focus moves to date part of "End Date" DateTimePicker.

If we continue to press tab key then focus gets on month part of "Start Date" DateTimePicker instead of date part of it. We want that user should always get the focus on date part of DateTimePicker.

Please help us if anyone knows the solution for this.


Thanks and Regards
Prasad
ASKER CERTIFIED SOLUTION
appari

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 7 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros