View Single Post

  #5 (permalink)  
Old 01-05-2003
Anonymous Anonymous is offline
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
set the keypreview to true for your form and use this code :

Private Sub Mpc_GotFocus()
Me.SetFocus
End Sub

Private Sub Mpc_MouseMove(ByVal Button As Long, ByVal Shift As Long, ByVal X As Long, ByVal Y As Long)
Me.SetFocus
End Sub

"Mpc" is the name of the Mappoint control in this case

This work fine for me, all the keys are intercepted by the form except the four arrows keys, I dont know why only this keys could not be intercept but for all other key it's good.

Bye
Reply With Quote