Thread: Text Boxes
View Single Post
Old Jun 2nd, 2005, 5:56 AM   #1
fox123
Newbie
 
Join Date: Mar 2005
Posts: 25
Rep Power: 0 fox123 is on a distinguished road
Post Text Boxes

I am having trouble with text boxes. (Like you wouldn't have guessed from the title)
What I would like to happen is when a button is pressed the mouse cursor goes to the start of the line. (My text box has multi line enabled)

The code I have used for the button press is:
Private Sub Form_KeyPress(KeyAscii As Integer)
If KeyAscii = 120 Then
Call cmdTime_Click
End If
End Sub

I need the code for the cmdTime_click sub routine, which is also a command button.

Thanks for looking
fox123 is offline   Reply With Quote