dateTimePicker navigation

  • Thread starter Thread starter touf
  • Start date Start date
T

touf

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.
 
Put this in your events

TextBox1.SelectionStart = 1

TextBox1.SelectionLength = 2

TextBox1.Select()
 
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?
 
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
 

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

Similar Threads


Back
Top