Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 4 of 4

Disable right mouse button

This is a discussion on Disable right mouse button within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi to all. I need to disable right mouse button when i am over the map with the pointer. How ...

  1. #1
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    Disable right mouse button

    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

  2. #2
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4
    There was a previous discussion in here on the topic.. hope this helps:

    http://www.mp2kmag.com/mappoint/disc...pic.asp?p=5978

    Eric
    ~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

  3. #3
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    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

  4. #4
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    try this

    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How can I hide or disable the optimisation button?
    By stephenmillington in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 08-30-2005, 06:18 AM
  2. who to locate a pushpin with a rigth button
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 06-29-2004, 02:41 PM
  3. Remove Close Button
    By Dazzer in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 04-01-2004, 06:56 AM
  4. Disable left mouse button
    By dearmhr in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 12-22-2003, 11:48 AM
  5. Disable Right mouse button
    By Fisherman´s Friend in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 12-17-2003, 09:48 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36