Community of VE/MapPoint Users and Developers
This is a discussion on mappoint europe 2004 and visual basic 6.0 within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I'm using mappoint europe 2004 and i'm trying to let it work alongside visual basic 6.0 In msdn there's this ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| mappoint europe 2004 and visual basic 6.0 In msdn there's this line "Dim objApp As New MapPoint.Application" when I want to use it vb says the following: "User-defined type not defined" what am I doing wrong? :s greetz |
| |||
|
now, my next question is I have al sorts of textboxes on my form, but when I type a city in one of them and then click on see map, I want a pushpin on the place of the user-given city... can somebody help me out here? thx already |
| |||
|
try using the findresults function on the ActiveMap. Read the documentation ( last point programming with mappoint ). If you have your references checked, press F1 to get more infos Dim objApp As New MapPoint.Application Dim objFindResults As MapPoint.FindResults 'Anwendung einrichten objApp.Visible = True objApp.UserControl = True 'Erstes Ergebnis der Suche ausgeben Set objFindResults = objApp.ActiveMap.FindResults("Seattle, WA") MsgBox "Das erste Element in der Ergebnisliste lautet: " _ + objFindResults.Item(1).Name Greetings, Syd |
| |||
|
ok thx the previous code you gave me is fine but it doesn't put any pushpin on my map? i was looking for that online but nothing could help me out of my problem. i'm working with a map in visual basic itself and the code is only based on a map outside visual basic... greetings from belgium |
| |||
|
To add a pushpin on the map, there's a function called "AddPushpin". All you need is a location object, like the one you get from the Findresults-Collection. The help file VB reference is very useful. First you'll have to search for an address, then you pick one from the findresults-collection, then add the item as pushpin and then make a zoom and that's it Perhaps you can make a search for mappoint.hlp -> there is also some good advice in it. I still find a lot of things I can put into my application. Greetings from Germany, Syd |
![]() |
| Tags |
| 2004, basic, europe, mappoint, visual |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Query Mappoint Visual Basic 6.0 | virgilar | MapPoint 2006/2009 Discussion | 2 | 10-08-2005 08:54 AM |
| mappoint, visual c++ vs visual basic | Anonymous | MapPoint 2006/2009 Discussion | 6 | 03-30-2004 10:17 PM |
| Visual Basic. NET and MapPoint | Anonymous | MapPoint 2006/2009 Discussion | 1 | 07-30-2003 03:49 PM |
| Visual basic or visual c++ in mappoint | misterb83 | MapPoint 2006/2009 Discussion | 1 | 02-14-2003 09:31 AM |
| I am using MapPoint 2001 and Visual Basic(6.0). I.... | Anonymous | MapPoint 2006/2009 Discussion | 2 | 06-10-2002 09:33 AM |