MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




mappoint europe 2004 and visual basic 6.0

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 ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-09-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
mappoint europe 2004 and visual basic 6.0

I'm using mappoint europe 2004 and i'm trying to let it work alongside 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 04-09-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
check you references
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 04-11-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
hmmm, thx
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 04-14-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 04-14-2004
Syd Syd is offline
Member
Yellow Belt
 
Join Date: Aug 2003
Posts: 42
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 04-14-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
i'm working with msdn online help, but the finding is not easy for a man without patience
thx btw Syd!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7 (permalink)  
Old 04-14-2004
Syd Syd is offline
Member
Yellow Belt
 
Join Date: Aug 2003
Posts: 42
Read & try & error or learning by doing

If you have any questions just ask.

Greetz,
Syd
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8 (permalink)  
Old 04-14-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9 (permalink)  
Old 04-15-2004
Syd Syd is offline
Member
Yellow Belt
 
Join Date: Aug 2003
Posts: 42
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 Of course you can change the symbol of the pushpin and add some text to the pushpin.note and show 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. I'm looking forward to Mappoint 2005 - I hope there's a lot more cool stuff in it then

Greetings from Germany,
Syd
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10 (permalink)  
Old 04-15-2004
Syd Syd is offline
Member
Yellow Belt
 
Join Date: Aug 2003
Posts: 42
Quote:
Originally Posted by yvdp
i'm working with a map in visual basic itself and the code is only based on a map outside visual basic...
Errm - what do you mean? Two maps?

Greetz,
Syd
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
2004, basic, europe, mappoint, visual


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -5. The time now is 10:38 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54