|
-
Sep 26th, 2000, 06:09 PM
#1
Thread Starter
Frenzied Member
ok... I think I see what you're saying, will using send keys to send the button END work? BTW if it will, how do I use send keys?
NXSupport - Your one-stop source for computer help
-
Sep 26th, 2000, 06:13 PM
#2
Using SendKeys??
Code:
'Send "ABC" to Text1
Text1.SetFocus
SendKeys "ABC"
-
Sep 26th, 2000, 06:14 PM
#3
Thread Starter
Frenzied Member
how do I send the END button (located under HOME on your keyboard)
NXSupport - Your one-stop source for computer help
-
Sep 26th, 2000, 06:15 PM
#4
Here you go:
Code:
Private Sub txtline1_KeyDown(KeyCode As Integer, Shift As Integer)
On Error Resume Next
Select Case KeyCode
Case vbKeyLeft:
txtline1.SetFocus
SendKeys "{END}"
SendKeys "{BACKSPACE}"
Case vbKeyControl:
KeyCode = 0
Case vbKeyRight:
KeyCode = 0
Case vbKeyUp:
keyascii = 0 'keyascii? = KeyCode
Case vbKeyDown:
keyascii = 0 'keyascii? = KeyCode
Case vbKeyHome:
KeyCode = 0
Case vbKeyDelete:
KeyCode = 0
Case vbKeyEscape:
SendKeys "`", True
Case vbKeyEnd:
KeyCode = 0
Case vbKeySnapshot:
frmDOS.PrintForm
End Select
End Sub
That should work.
-
Sep 27th, 2000, 04:23 PM
#5
Thread Starter
Frenzied Member
NXSupport - Your one-stop source for computer help
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|