Community of VE/MapPoint Users and Developers
This is a discussion on Mouse Down Event -> Form_DB.Show-> Problems with Varia within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi Folks, got a problem with the mouse down event: On clicking on a pushpin, I open a Form and ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Mouse Down Event -> Form_DB.Show-> Problems with Varia got a problem with the mouse down event: On clicking on a pushpin, I open a Form and want to get a variable value from the main form. This only works every second time. With the using of a timer with 5 secs interval it works (bit who wants to wait 5 secs...). Any ideas? Thanks a lot Peter |
| |||
|
Hi, I think maybe you can try this sub: 'Map1 is a mappoint control Private Sub map1_MouseDown(ByVal Button As Long, ByVal Shift As Long, ByVal X As Long, ByVal Y As Long) Dim xx As Long, yy As Long 'You need check your scalemode property. I am using twip in VB, but mappoint uses pixel. xx = X / Screen.TwipsPerPixelX yy = Y / Screen.TwipsPerPixelY Dim objtemp As MapPoint.FindResults Set objtemp = objMap.ObjectsFromPoint(X, Y) 'objmap is a mappoint.map object If TypeOf objtemp.Item(1) Is MapPoint.Pushpin Then Load Form1 'This is the form you want to show ' Do what you want to do, like "Form1.Label1.Caption = frmSearch.Label1.Caption" Form1.Show 1 Else MsgBox "It is not a pushpin" End If End Sub Good luck. |
![]() |
| Tags |
| >, event, formdbshow>, mouse, problems, varia |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Capturing Mouse Wheel Event | Anonymous | MapPoint Web Service and Virtual Earth | 2 | 11-30-2005 08:31 AM |
| Trying to get the MapPoint.Location at a mouse event | BobFromBoston | MapPoint 2006/2009 Discussion | 6 | 07-30-2005 08:41 AM |
| find city name & state name on mouse move event | Atul22 | MapPoint 2006/2009 Discussion | 2 | 10-15-2004 05:28 AM |
| mouse down event | henemonster | MapPoint 2006/2009 Discussion | 1 | 03-31-2003 03:04 PM |
| Show another form after mouse_down event... | blackmap | MapPoint 2006/2009 Discussion | 1 | 01-21-2003 03:21 PM |