MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




Mouse Down Troubles

This is a discussion on Mouse Down Troubles within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I'm trying to use the following code fromt he MSDN so that I can capture mouse events int he mappoint ...


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 (1) Thread Tools Display Modes
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 11-24-2003
Member
Yellow Belt
 
Join Date: Sep 2003
Posts: 44
Mouse Down Troubles

I'm trying to use the following code fromt he MSDN so that I can capture mouse events int he mappoint ocx:
Quote:
'This code requires that you have a list box on your form
Dim WithEvents objApp As MapPoint.Application
Dim WithEvents objMap As MapPoint.Map

Private Sub Form_Load()
'Set up the application
Set objApp = CreateObject("mappoint.application")
Set objMap = objApp.ActiveMap
objApp.Visible = True
objApp.UserControl = True
End Sub

Private Sub objMap_MouseDown(ByVal Button As Long, ByVal Shift As Long, ByVal X As Long, ByVal Y As Long)
List1.AddItem "MouseDown event fired"
End Sub

Private Sub objMap_MouseMove(ByVal Button As Long, ByVal Shift As Long, ByVal X As Long, ByVal Y As Long)
List1.AddItem "MouseMove event fired"
End Sub

Private Sub objMap_MouseUp(ByVal Button As Long, ByVal Shift As Long, ByVal X As Long, ByVal Y As Long)
List1.AddItem "MouseUp event fired"
End Sub
However, when I put this into vb.net, I get an error on the "Dim withevents" lines syaing that the "'withevents' variable does not raise any events. I'm assuming this is why I can't get it to fire any events from the mouse.

Any help would be great

Cheers

M
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
mouse, troubles


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/mouse-down-troubles-2146.html

Posted By For Type Date
''WithEvents'' variable does not raise any events - ng.asp-net-forum.getting_started - error problem solve @CodeVerge This thread Refback 02-24-2009 06:25 PM

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
Disable Right mouse button Fisherman´s Friend MapPoint 2006/2009 Discussion 2 12-17-2003 08:48 AM
mouse down event henemonster MapPoint 2006/2009 Discussion 1 03-31-2003 02:04 PM
troubles Anonymous MapPoint 2006/2009 Discussion 0 03-30-2003 12:16 PM
Ist it possible to get X, Y from mouse move blackmap MapPoint 2006/2009 Discussion 1 12-16-2002 03:54 PM
Is there a way to programatically switch the mouse.... Anonymous MapPoint 2006/2009 Discussion 2 07-19-2002 09:14 AM


All times are GMT -5. The time now is 04:51 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

Taba Heights Holiday
Visit Egypt with your Taba Heights holiday. Book through UlookUbook and save!



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