Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

F1…


chuchoide
 Share

Recommended Posts

It interesting your title is programmer and you dont know about KeyDown. >.>
Anywho, try this.

Make sure your form has KeyPreview set to True in the Properties menu.
I'm not sure how to to CTRL a, but I will use the Escape key as a base.

```
Private Sub YourFormNameHere_KeyDown(KeyCode As Integer, Shift As Integer)
  If KeyCode = vbKeyEscape Then
'Enter the code here you want excucuted when the Escape is pressed.
  End If
End Sub

```
Link to comment
Share on other sites

@Timmah:

> It interesting your title is programmer and you dont know about KeyDown. >.>
> Anywho, try this.
>
> Make sure your form has KeyPreview set to True in the Properties menu.
> I'm not sure how to to CTRL a, but I will use the Escape key as a base.
>
> ```
> Private Sub YourFormNameHere_KeyDown(KeyCode As Integer, Shift As Integer)
>   If KeyCode = vbKeyEscape Then
> 'Enter the code here you want excucuted when the Escape is pressed.
>   End If
> End Sub
>
> ```

It might be his dream goal to be a real programmer.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...