MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




Disable right mouse button

This is a discussion on Disable right mouse button within the MapPoint 2006/2009 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 ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Today's Posts Twitter Feed Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-22-2003
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 07-22-2003
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 3,041
Blog Entries: 2
There was a previous discussion in here on the topic.. hope this helps:

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

Eric
__________________
~ Now taking orders for MapPoint 2009 ~
~~
~ Upgrade to MapForums Plus membership ~
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 07-23-2003
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 09-10-2003
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
button, disable, mouse


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
How can I hide or disable the optimisation button? stephenmillington MapPoint 2006/2009 Discussion 0 08-30-2005 05:18 AM
who to locate a pushpin with a rigth button Anonymous MapPoint 2006/2009 Discussion 0 06-29-2004 01:41 PM
Remove Close Button Dazzer MapPoint 2006/2009 Discussion 0 04-01-2004 05:56 AM
Disable left mouse button dearmhr MapPoint 2006/2009 Discussion 0 12-22-2003 10:48 AM
Disable Right mouse button Fisherman´s Friend MapPoint 2006/2009 Discussion 2 12-17-2003 08:48 AM


All times are GMT -5. The time now is 01:20 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 RC2
MP2K Magazine
Visitor Map

Zante Holidays
Enjoy lovely sandy beaches when you take your Zante holidays booked through UlookUbook!



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 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59