Want to measuring two sets of data,
Respectively by the left side of the keyboard direction key count,
Press a key gauge number,
The best is English version,
O master
CodePudding user response:
Didn't understandCodePudding user response:
Option Explicit
Private Sub Form_Load ()
KeyPreview=True
Text1=0
Text2=0
End Sub
Private Sub Text1_KeyDown (KeyCode As an Integer, Shift the As an Integer)
The Select Case KeyCode
Case vbKeyLeft
Text1=Text1 + 1
Case vbKeyRight
Text2=Text2 + 1
End the Select
End Sub
CodePudding user response:
Show variable what is undefinedCodePudding user response:
Do you want to draw on forms two TextBox,Painting not to change the name,