Article ID: 100413
Article Last Modified on 8/16/2005
Sub Picture1_KeyDown(KeyCode AS INTEGER, Shift AS INTEGER)
IF KeyCode = 38 Then '* 38 = up arrow key
Text2.SetFocus
Text2.SelStart = 0 '* set the cursor to the start
END IF
IF KeyCode = 40 Then '* 40 = down arrow key
Text1.SetFocus
Text1.SelStart = 0 '* set the cursor to the start
END IF
END SUB
Sub Text1_KeyDown(KeyCode AS INTEGER, Shift AS INTEGER)
If KeyCode = 38 Then '* 38 = UP ARROW key
Picture1.SetFocus
End If
If KeyCode = 40 Then '* 40 = DOWN ARROW key
Text2.SetFocus
Text2.SelStart = 0 '* set the cursor to the start
End If
End Sub
Sub Text2_KeyDown(KeyCode AS INTEGER, Shift AS INTEGER)
If KeyCode = 38 Then '* 38 = UP ARROW key
Text1.SetFocus
Text1.SelStart = 0 '* set the cursor to the start
End If
If KeyCode = 40 Then '* 40 = DOWN ARROW key
Picture1.SetFocus
End If
End Sub
Additional query words: 2.00 3.00 B_VBmsdos
Keywords: KB100413