View Single Post

  #2 (permalink)  
Old 08-22-2002
John Meyer's Avatar
John Meyer John Meyer is offline
Senior Member
Blue Belt
 
Join Date: Jul 2002
Posts: 479
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.
__________________
John
http://www.support-pc.com

Order MapPoint 2006 Here
https://secure.mp2kmag.com/?refer=support-PC
Reply With Quote