MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Visual Studio 08 & MapPoint

This is a discussion on Visual Studio 08 & MapPoint within the MapPoint 2006/2009 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 ...


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 (1) Thread Tools Display Modes
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 11-17-2008
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
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 11-18-2008
Junior Member
White Belt
 
Join Date: Nov 2008
Posts: 3
Question Re: Visual Studio 08 & MapPoint

Here is my code so far.

Quote:
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
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 11-18-2008
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
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 11-20-2008
Senior Member
Green Belt
 
Join Date: Sep 2005
Location: Marshall, Michigan
Posts: 128
Re: Visual Studio 08 & MapPoint

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

HTH
-Paul
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
mappoint, studio, visual


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/visual-studio-08-mappoint-9118.html

Posted By For Type Date
The Magazine for MapPoint - MP2K Magazine This thread Refback 11-17-2008 02:53 PM

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
Mappoint with visual studio .net sandy336 MapPoint 2006/2009 Discussion 3 10-08-2008 07:44 AM
tutorial mappoint in VB6.0 visual studio lucci56 MapPoint 2006/2009 Discussion 1 07-14-2006 09:06 AM
MapPoint 2004 and Visual Studio 2005 Runtime error tizer001 MapPoint 2006/2009 Discussion 10 02-26-2006 10:51 AM
MapPoint 2002 ActiveX control and Visual Studio .NET 2003 chulaka MapPoint 2006/2009 Discussion 1 09-30-2003 11:35 AM
Accessing Mappoint 2002 via Visual Studio .NET 2003 Anonymous MapPoint 2006/2009 Discussion 1 08-14-2003 12:01 PM


All times are GMT -5. The time now is 01:49 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, 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 55