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; what you mean is that when you click your "submit button" you go to mappoint2004 itself I only open another ...


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
  #11 (permalink)  
Old 04-15-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
what you mean is that when you click your "submit button" you go to mappoint2004 itself
I only open another form in my visual basic project where the map is
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12 (permalink)  
Old 04-15-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
I have my mappoint control in a usercontrol which I put in a form.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #13 (permalink)  
Old 04-15-2004
Syd Syd is offline
Member
Yellow Belt
 
Join Date: Aug 2003
Posts: 42
I have my mappoint control in a usercontrol which I put in a form.
It is an activex server exe.

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
  #14 (permalink)  
Old 04-17-2004
Junior Member
Yellow Belt
 
Join Date: Apr 2004
Posts: 12
I do the exact same thing
i use only 1 map but it's on another form in my project
__________________
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
  #15 (permalink)  
Old 04-19-2004
Junior Member
Yellow Belt
 
Join Date: Apr 2004
Posts: 12
next problem
runtime error 429:
ActiveX component can't create object

i'm using this code:
Dim omap As MapPoint.Map
Set omap = GetObject(, "MapPoint.Application").ActiveMap

Dim oPPSet As MapPoint.DataSet
Dim oPin As MapPoint.Pushpin
Dim oDS As MapPoint.DataSets

Set oPin = omap.AddPushpin(omap.FindResults( _
txtKaart.Text)(1))

Set oDS = omap.DataSets
Set oPPSet = omap.DataSets.AddPushpinSet("Deliveries")
oPin.MoveTo oPPSet

it higlights the "set omap..." sentence
my mappoint control is ok, what's wrong?
__________________
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
  #16 (permalink)  
Old 04-20-2004
Junior Member
Yellow Belt
 
Join Date: Aug 2002
Posts: 14
Send a message via MSN to Anthony_Hunt
How to pushpin an address from VB

On a VB form with three address entry lines "address_line1" etc., a MapPoint control named "MapPointControl1", and a button named "btnFind".


Private Sub btnFind_Click()

Dim objPin As Pushpin
Dim objLoc As Location
Dim place As String

place = Me.address_line1.Text & ", " & Me.address_line2.Text & ", " & Me.address_line3.Text

Set objLoc = Me.MappointControl1.ActiveMap.FindResults(place).I tem(1)

If objLoc Is Nothing Then
Msgbox "Nothing Found"
Exit Sub
End If

Set objPin = Me.MappointControl1.ActiveMap.AddPushpin(objLoc, Me.address_line1.Text)
objPin.Symbol = 78 '# red house
objPin.note = place
objPin.BalloonState = geoDisplayBalloon

End Sub
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #17 (permalink)  
Old 04-20-2004
Junior Member
Yellow Belt
 
Join Date: Apr 2004
Posts: 12
I get an error on this line
"Set objLoc = MappointControl1.ActiveMap.FindResults(place).Item (1)"

error: object variable or With object variable not set
runtime error "91"

thx Anthony
__________________
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
  #18 (permalink)  
Old 04-20-2004
Junior Member
Yellow Belt
 
Join Date: Aug 2002
Posts: 14
Send a message via MSN to Anthony_Hunt
Missing a line?

Have you initialised the MapPoint ActiveX on the form in the Form_Load event?


Private Sub Form_Load()

Me.MappointControl1.newMap geoMapEurope ' geoMapNorthAmerica

End Sub

Otherwise "ActiveMap" is Nothing (hence "object not set").

Try that and let me know if you're still stuck.
__________________
Regards

Anthony Hunt ach@kl2.com
Senior Technical Specialist
Kappa Lambda Squared Limited www.kl2.com
Erskine House, 53 London Road, Maidstone, Kent. ME16 8JH
Tel: 01622 670095
Fax: 01622 200119

magnus frater spectat te
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #19 (permalink)  
Old 04-20-2004
Junior Member
Yellow Belt
 
Join Date: Apr 2004
Posts: 12
thank you so very much
it works now

greeting from belgium!
__________________
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
  #20 (permalink)  
Old 05-05-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Quote:
Originally Posted by yvdp
I get an error on this line
"Set objLoc = MappointControl1.ActiveMap.FindResults(place).Item (1)"

error: object variable or With object variable not set
runtime error "91"

thx Anthony
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:44 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