sirmilt
08-08-2007, 10:25 AM
I'm working on an application with a number of MaskTextBoxes to enter time values. There are two sets of In and Out boxes for every day of the week for two weeks a total of 56 boxes.
I want the user to enter a time and then press either the Tab key or the Enter key to convert from text to a date, validify the time and move to the next control.
Unfortunately, the tab key moves the focus to the next control but does not call the KeyDown or KeyUp function. The Enter key runs the code but does not move the focus to the next control.
I want to give the user the option of pressing either Tab or Enter and can't figure out how.
Has anyone any suggestions?
I want the user to enter a time and then press either the Tab key or the Enter key to convert from text to a date, validify the time and move to the next control.
Unfortunately, the tab key moves the focus to the next control but does not call the KeyDown or KeyUp function. The Enter key runs the code but does not move the focus to the next control.
I want to give the user the option of pressing either Tab or Enter and can't figure out how.
Has anyone any suggestions?