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. |
![]() |
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 07:31 AM |
| Trying to get the MapPoint.Location at a mouse event | BobFromBoston | MapPoint 2006/2009 Discussion | 6 | 07-30-2005 07:41 AM |
| find city name & state name on mouse move event | Atul22 | MapPoint 2006/2009 Discussion | 2 | 10-15-2004 04:28 AM |
| mouse down event | henemonster | MapPoint 2006/2009 Discussion | 1 | 03-31-2003 02:04 PM |
| Show another form after mouse_down event... | blackmap | MapPoint 2006/2009 Discussion | 1 | 01-21-2003 02:21 PM |
Ski Europe
Want to ski in Europe? Choose from the stunning range of fantastic ski destinations at Holiday Hypermarket. Find a price to suit you.
Travel Counselors
Travel Counselors are an award winning Travel Agent. Why not have a personal Travel Counselor help with your travel plans.
Canada Flights
Canada flights are great value flights when you visit dealchecker.co.uk first. Full of surprises, Canada is simply the most astonishingly beautiful country in the world.
Dominican Republic Holidays
Dominican Republic holidays have something to offer for everyone. From water sports, to sun bathing and more, enjoy a holiday there!
Cheap Egypt Holidays
Pick up a bargain cheap Egypt holiday online when you visit ulookubook.com. Just check out our tips to make sure you book at the right time to get a great holiday for a great price. Finding cheap Egypt holidays can be simple when you know how.
All inclusive holidays
To plan all inclusive holidays, use Travel.co.uk to explore all the possibilities.
Cheap Holidays to Sharm el Sheikh
Break away to Northern Africa. Find cheap holidays to Sharm el Sheikh at On The Beach.