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
Results 1 to 4 of 4

Visual Studio 08 & MapPoint

This is a discussion on Visual Studio 08 & MapPoint within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hello, I'm a newly registered with the forum, which i have found really helpful in pointing me in the direction ...

  1. #1
    Mr.Addy is offline Junior Member White Belt
    Join Date
    Nov 2008
    Posts
    3

    Question Visual Studio 08 & MapPoint

    Hello, I'm a newly registered with the forum, which i have found really helpful in pointing me in the direction needed, but I have a problem I hope you can help me with?

    Hi, my company deal with mappoint all the time, and I'm looking to incorporate it into a program I have written for the sales department.

    I have managed to get it working, and it manages to search and put the results into a listbox.

    Alto of the information on it, seems to be earlier versions on VB, so the coding for me, being newish is difficult to understand.

    What I would like some help with, is how I make it so when the user double clicks on the postbox's item, the information can zoom them to the area with a 10 miles radius from the centre point. Please can anyone point me in the right direction and give me a hand please?

    Thanks in advance

  2. #2
    Mr.Addy is offline Junior Member White Belt
    Join Date
    Nov 2008
    Posts
    3

    Question Re: Visual Studio 08 & MapPoint

    Here is my code so far.

    Dim objApp As MapPoint.Application
    Dim objLoc As MapPoint.Location
    Dim objMap As MapPoint.Map

    PrivateSub MapPointView_Load(ByVal sender AsObject, ByVal e As System.EventArgs) HandlesMe.Load
    objApp = CreateObject("MapPoint.Application")
    objApp.UserControl = True
    mappointCT.OpenMap("D:\Documents and Settings\" & Agent & "\My Documents\Map.ptm")
    Dim FindString AsString
    Dim objFindResults As FindResults
    Dim X AsInteger
    FindString = (QuikDel.DeliveryCityTextBox.Text & " England, United Kingdom")
    objMap = Me.mappointCT.ActiveMap
    objFindResults = objMap.FindResults(FindString)
    X = 1
    DoWhile X = 5
    objLoc = objFindResults.Item(X)
    FindResults.Items.Add(objLoc.Name)
    X = X + 1
    Loop
    EndSub


    PrivateSub FindResults_DoubleClick(ByVal sender AsObject, ByVal e As System.EventArgs) Handles FindResults.DoubleClick
    MsgBox(FindResults.SelectedItem)
    objLoc = FindResults.SelectedItem
    objLoc.GoTo()
    EndSub
    I have been unable to have the selected out of the 5 choices given to GoTo() the location picked? any ideas on that one ?

    Also, how do I close the window it's in, without generating a error.

    Thanks

  3. #3
    Mr.Addy is offline Junior Member White Belt
    Join Date
    Nov 2008
    Posts
    3

    Re: Visual Studio 08 & MapPoint

    Okay, it was working great, now all I get is this message, and I do not know why:

    An error occurred creating the form. See Exception.InnerException for details. The error is: Could not load type 'MapPoint.IMappointCtrl' from assembly 'Interop.MapPoint, Version=8.3.0.0, Culture=neutral, PublicKeyToken=null'.

    PLease can someone explain this.. I really need to get back to how it was - I really cannot remember what i did to make it stop..

    Thanks

  4. #4
    Paul Larson is offline Senior Member Green Belt
    Join Date
    Sep 2005
    Location
    Battle Creek, Michigan
    Posts
    136

    Re: Visual Studio 08 & MapPoint

    Remove and the re-add your project's reference to the mappoint control.

    HTH
    -Paul

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Mappoint with visual studio .net
    By sandy336 in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 10-08-2008, 06:44 AM
  2. tutorial mappoint in VB6.0 visual studio
    By lucci56 in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 07-14-2006, 08:06 AM
  3. MapPoint 2004 and Visual Studio 2005 Runtime error
    By tizer001 in forum MapPoint Desktop Discussion
    Replies: 10
    Last Post: 02-26-2006, 09:51 AM
  4. MapPoint 2002 ActiveX control and Visual Studio .NET 2003
    By chulaka in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 09-30-2003, 10:35 AM
  5. Accessing Mappoint 2002 via Visual Studio .NET 2003
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 08-14-2003, 11:01 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 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 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127