This question is locked. New answers and comments are not allowed.
I'm looking at how to auto-insert slashes as the user enters data into the text box part of the DateTimePicker control, but can't see an easy way to do this.
Too many properties are read only and if I try and set the value of the control in an event like ParseDateTimeValue the rest of the input then gets set to a valid date.
eg imagine the user wants to enter a date of 10/12/2010 as soon as they've entered "10" I want the input text box to display "10/" and have the cursor positioned ready for the month NOT have it switch in today's month and year with the cursor positioned at the end, which is what happens even if I don't go anwhere near the args.Result parameter that ParseDateTimeValue gives me to play with.
In many ways a MaskedTextBox offers something similar to what I want except our end-users don't want to use cursor keys to move between the slash delimiters.
Is there an easy way to implement what is required?
Too many properties are read only and if I try and set the value of the control in an event like ParseDateTimeValue the rest of the input then gets set to a valid date.
eg imagine the user wants to enter a date of 10/12/2010 as soon as they've entered "10" I want the input text box to display "10/" and have the cursor positioned ready for the month NOT have it switch in today's month and year with the cursor positioned at the end, which is what happens even if I don't go anwhere near the args.Result parameter that ParseDateTimeValue gives me to play with.
In many ways a MaskedTextBox offers something similar to what I want except our end-users don't want to use cursor keys to move between the slash delimiters.
Is there an easy way to implement what is required?