|
You'll probably have to use a API function to trap for the keypress. The mappoint control does not have a keypress event like a command button for example. If a command button had the focus you could trap the F1 key like this:
Private Sub Command1_KeyUp(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyF1 Then
MsgBox "F1 Pressed" 'do whatever here
End If
End Sub
We are already kind of out of the scope of this forum so I'll leave it at that. |