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 ...
| |||||||
| 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 |
![]() |
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 07:54 AM |
| mappoint, visual c++ vs visual basic | Anonymous | MapPoint 2006/2009 Discussion | 6 | 03-30-2004 09:17 PM |
| Visual Basic. NET and MapPoint | Anonymous | MapPoint 2006/2009 Discussion | 1 | 07-30-2003 02:49 PM |
| Visual basic or visual c++ in mappoint | misterb83 | MapPoint 2006/2009 Discussion | 1 | 02-14-2003 08:31 AM |
| I am using MapPoint 2001 and Visual Basic(6.0). I.... | Anonymous | MapPoint 2006/2009 Discussion | 2 | 06-10-2002 08:33 AM |
Cheap Florida Flights
Cheap Florida flights are a reality when you book online at Holiday Hypermarket. We search leading tour operators to show you top deals.
European City Breaks
Book European city breaks with Travel Counsellors. A personal travel counselor will help plan your European city break.
Thailand Holidays
Thailand Holidays can suit your budget when you book with dealchecker.co.uk. If you are strapped for cash, visit online to find the deal for you.
Holidays to Cancun
The Holiday Place has special offers on holidays to Cancun during the month of September. Book a late summer holiday with us!
Cheap Canaries Holidays
Are you hunting down cheap Canaries holidays? Well check out ulookubook.com to bag a great value holiday. There are numerous festivals taking place all year round. Why not book your holiday around one?
Holidays
At Travel.co.uk the options for holidays are endless. Do some online comparison shopping!
Cheap Lanzarote Holidays
The Canary Islands beckons you to come! View information on cheap Lanzarote holidays at On The Beach!