So, here goes.
I have a user requirement. The basically need 1 textbox, it doesnt matter if it is a masked textbox or a datetimepicker or whatever.
This textbox needs to allow only hh:mm and when it gains focus it needs to select the whole of the contents.
When the user navigates to this textbox initially, it should be blank (it can be __:__ if masked) and should allow a user to type:
0125
without needing to press any other keys (01 is the hours and 25 is the minutes). The control should be smart enough to display 01:25 but not require the user to press the arrow keys to move from hours to minutes.
I have tried this using the maskededitbox and found that it doesnt work as intended and I cant clear the text if I set the mask to ##:## which is annoying. I then used the datetimepicker and selected time, but it has hh:mm:ss and to get from hours to minutes you have to use the arrow key.
Any help you can give would be greatly appreciated.
I have a user requirement. The basically need 1 textbox, it doesnt matter if it is a masked textbox or a datetimepicker or whatever.
This textbox needs to allow only hh:mm and when it gains focus it needs to select the whole of the contents.
When the user navigates to this textbox initially, it should be blank (it can be __:__ if masked) and should allow a user to type:
0125
without needing to press any other keys (01 is the hours and 25 is the minutes). The control should be smart enough to display 01:25 but not require the user to press the arrow keys to move from hours to minutes.
I have tried this using the maskededitbox and found that it doesnt work as intended and I cant clear the text if I set the mask to ##:## which is annoying. I then used the datetimepicker and selected time, but it has hh:mm:ss and to get from hours to minutes you have to use the arrow key.
Any help you can give would be greatly appreciated.