By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,161 Members | 1,365 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,161 IT Pros & Developers. It's quick & easy.

dateTimePicker navigation

P: n/a
Hi,
I've a DateTimePicker control , format dd/mm/yyyy
How is it possible to always highlight the DD part when the user clic inside
the control or use the TAB key to go in.
This will simplify the data entry because the user can clic inside the
control and start typing.

Thanks.
Nov 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Put this in your events

TextBox1.SelectionStart = 1

TextBox1.SelectionLength = 2

TextBox1.Select()

"touf" <to******@hotmail.com> wrote in message
news:e$**************@TK2MSFTNGP12.phx.gbl...
Hi,
I've a DateTimePicker control , format dd/mm/yyyy
How is it possible to always highlight the DD part when the user clic inside the control or use the TAB key to go in.
This will simplify the data entry because the user can clic inside the
control and start typing.

Thanks.

Nov 20 '05 #2

P: n/a
Thanks
But I didn't understand... my control isn't a textBox, it's a
datetimepicker, and it doesn't have the property selectionStart.

can you explain me more please?


"One Handed Man [ OHM ]" <te***************************@BTOpenworld.com>
wrote in message news:#B**************@tk2msftngp13.phx.gbl...
Put this in your events

TextBox1.SelectionStart = 1

TextBox1.SelectionLength = 2

TextBox1.Select()

"touf" <to******@hotmail.com> wrote in message
news:e$**************@TK2MSFTNGP12.phx.gbl...
Hi,
I've a DateTimePicker control , format dd/mm/yyyy
How is it possible to always highlight the DD part when the user clic

inside
the control or use the TAB key to go in.
This will simplify the data entry because the user can clic inside the
control and start typing.

Thanks.


Nov 20 '05 #3

P: n/a
Sorry,

Isnt the idea of a date time picker that you cant mess up the date, and you
pick from selected date ranges. You cant edit this field anyway as far as I
am aware can you ?

OHM

"touf" <to******@hotmail.com> wrote in message
news:ej*************@TK2MSFTNGP11.phx.gbl...
Thanks
But I didn't understand... my control isn't a textBox, it's a
datetimepicker, and it doesn't have the property selectionStart.

can you explain me more please?


"One Handed Man [ OHM ]" <te***************************@BTOpenworld.com>
wrote in message news:#B**************@tk2msftngp13.phx.gbl...
Put this in your events

TextBox1.SelectionStart = 1

TextBox1.SelectionLength = 2

TextBox1.Select()

"touf" <to******@hotmail.com> wrote in message
news:e$**************@TK2MSFTNGP12.phx.gbl...
Hi,
I've a DateTimePicker control , format dd/mm/yyyy
How is it possible to always highlight the DD part when the user clic

inside
the control or use the TAB key to go in.
This will simplify the data entry because the user can clic inside the
control and start typing.

Thanks.



Nov 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.