Anonymous
07-22-2003, 03:36 AM
Hi to all. I need to disable right mouse button when i am over the map with the pointer.
How can i solve my problem?
Thanx a lot for any answer 8)
How can i solve my problem?
Thanx a lot for any answer 8)
| | ||
| | Disable right mouse buttonAnonymous 07-22-2003, 03:36 AM Hi to all. I need to disable right mouse button when i am over the map with the pointer. How can i solve my problem? Thanx a lot for any answer 8) Eric Frost 07-22-2003, 01:09 PM There was a previous discussion in here on the topic.. hope this helps: http://www.mp2kmag.com/mappoint/discussion/viewtopic.asp?p=5978 Eric Anonymous 07-23-2003, 06:59 AM Hi Eric. This code does not work!! Private Sub MappointControl1_BeforeClick(ByVal Button As Long, ByVal Shift As Long, ByVal X As Long, ByVal Y As Long, Cancel As Boolean) If Button = 1 Then Cancel = True End If End Sub I've tried it but right and left button are all enabled! I use AxMappointControl1 as name with my control so my code is Private Sub AxMappointControl1_BeforeClick(ByVal Button As Long, ByVal Shift As Long, ByVal X As Long, ByVal Y As Long, Cancel As Boolean) If Button = 1 Then Cancel = True End If End Sub I work with Visual Basic.NET Anonymous 09-10-2003, 05:09 AM Private Sub MappointControl1_BeforeClick(ByVal Button As Long, ByVal Shift As Long, ByVal X As Long, ByVal Y As Long, Cancel As Boolean) if button<>1 then cancel=true end sub | |
| | ||