Community of VE/MapPoint Users and Developers
This is a discussion on Creating an application with mappoint within vb within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi all! Am quite new to mappoint and I am trying to programm an application with the active x. What ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Creating an application with mappoint within vb Am quite new to mappoint and I am trying to programm an application with the active x. What I can already do is to put up am map, zoomto a certain adress etc. What I am looking now for is: -How can I add the legend to my app/ control? -How can I click on a certain pushpin, make an odbc connection and show some information from the odbc database ? -This is a mappoint user forum, right? Is there a forum just for developers? Thank you very much! Peter |
| ||||
|
You are in the right forum. To add the legend Code: MapPointControl1.PaneState = geoPaneLegend Code: Dim objmap As MapPointctl.Map
Dim objPushpin As MapPointCtl.Pushpin
Set objmap = MapPointControl1.ActiveMap
'Make sure the item selected on the map is a pushpin
If TypeOf objmap.Selection Is Pushpin Then
Set objPushpin = MapPointControl1.Selection
'Do Something
End If
__________________ John http://www.support-pc.com Order MapPoint 2006 Here https://secure.mp2kmag.com/?refer=support-PC |
| |||
| Select pushpin and connect to databse
Hi John, thanks a lot for your answers! When I paste the last code snipplet into the mouse_down event of the mappoint control it causes a mean crash. Do you have an idea? What I want to do is: Click on a pushpin in my map, when it's sapushpin I want to connect to an odbc database and sho some information in a dialog. Peter |
| ||||
|
I would put the code in the "SelectionChange event" At the point in the code sample that says "Do Something" call a subroutine, passing it the pushpin object. You can not run your code inside the event procedure or you will get the "Server Busy Error"
__________________ John http://www.support-pc.com Order MapPoint 2006 Here https://secure.mp2kmag.com/?refer=support-PC |
![]() |
| Tags |
| application, creating, mappoint |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Creating a setup project in VB.net to distribute Mappoint | Anonymous | MapPoint 2006/2009 Discussion | 3 | 10-04-2005 04:24 PM |
| tip: creating object model of mappoint and SQL command | Wilfried | MapPoint 2006/2009 Discussion | 0 | 02-24-2005 02:00 PM |
| MapPoint Programming.... Creating a Route | Anonymous | MapPoint 2006/2009 Discussion | 7 | 10-12-2004 02:34 AM |
| Creating COM add-ins for MapPoint using C# | ratsey | MapPoint 2006/2009 Discussion | 3 | 11-12-2003 12:44 PM |
| Are there any plans for creating a mappoint active.... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 07-30-2001 08:01 AM |