Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20

mappoint europe 2004 and visual basic 6.0

This is a discussion on mappoint europe 2004 and visual basic 6.0 within the MapPoint Desktop 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 ...

  1. #11
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    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

  2. #12
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    I have my mappoint control in a usercontrol which I put in a form.

  3. #13
    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

  4. #14
    yvdp is offline 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

  5. #15
    yvdp is offline 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

  6. #16
    Anthony_Hunt's Avatar
    Anthony_Hunt is offline Junior Member Yellow Belt
    Join Date
    Aug 2002
    Location
    Maidstone, Kent
    Posts
    14

    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

  7. #17
    yvdp is offline 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

  8. #18
    Anthony_Hunt's Avatar
    Anthony_Hunt is offline Junior Member Yellow Belt
    Join Date
    Aug 2002
    Location
    Maidstone, Kent
    Posts
    14

    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.
    Anthony Hunt ach@kl2.com
    Senior Technical Specialist
    KL2 www.kl2.com
    Springfield House, Sandling Road, Maidstone, Kent. ME14 2LP
    Tel: 01622 670095

  9. #19
    yvdp is offline Junior Member Yellow Belt
    Join Date
    Apr 2004
    Posts
    12
    thank you so very much
    it works now

    greeting from belgium!
    greetz

  10. #20
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    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

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Query Mappoint Visual Basic 6.0
    By virgilar in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 10-08-2005, 08:54 AM
  2. mappoint, visual c++ vs visual basic
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 6
    Last Post: 03-30-2004, 10:17 PM
  3. Visual Basic. NET and MapPoint
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 07-30-2003, 03:49 PM
  4. Visual basic or visual c++ in mappoint
    By misterb83 in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 02-14-2003, 09:31 AM
  5. I am using MapPoint 2001 and Visual Basic(6.0). I....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 06-10-2002, 09:33 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


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