|
-
August 19th, 2003, 11:44 AM
#1
simulate mouseclick with keyboardbutton
next to my controls I have a picture. When I click with the right mouse button on it an event will happen.
When I use the tab and the tabindex is just there. and then I have to click on enter and the event will happen 2.
so I have a button next to it is the picture. so I'm on the button I press tab and I'm on the picture then I have to press on enter and the event for that picture have to happen with pushing on the enter button.
thx to the best.
grtz
enjoy every day of your life, don't listen to oters, make your life self!!!
§The Chosen One§ @k@ Romèo
-
August 20th, 2003, 12:36 AM
#2
sorry I didn't understand your question. I think you are asking how to trigger the PICTURE_CLICK event after pressing enter? yes?
Well, in the KEYDOWN event you could place code to call the CLICK event if the enter button is pressed.
Mike
-
August 20th, 2003, 05:39 AM
#3
Private Sub PicOpslaan_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyAscii = 13 Then
---->PicOpslaan_Click <-----
End If
End Sub
How can I trigger then the picopslaan_click event????
thx a lot
enjoy every day of your life, don't listen to oters, make your life self!!!
§The Chosen One§ @k@ Romèo
-
August 20th, 2003, 02:48 PM
#4
I don't think KeyDown traps the enter key. Try the KeyPress event:
If KeyAscii = vbKeyReturn then
PicOpslaan_Click
End If
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
|