Community of VE/MapPoint Users and Developers
This is a discussion on cant create a Puspin-Object within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hello, i am using the mappoint control of mappoint european 2004 to create an application I want to use pushpins ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| cant create a Puspin-Object i am using the mappoint control of mappoint european 2004 to create an application I want to use pushpins to show data on the map in some exsamples i saw code like: Quote:
Here is my Code Code: Dim pinCounter As Integer
pinCounter = 0
objRecordSet.MoveFirst()
Dim myPushpins(pinCounter.MaxValue - 1) As MapPoint.Pushpin
Do While Not objRecordSet.EOF
myPushpins(pinCounter) = New MapPoint.Pushpin '<<--- ? "New cannot be used with an Interface..." ?
objRecordSet.MoveNext()
pinCounter += 1
Loop
|
| ||||
|
What language are you programming in?
__________________ John http://www.support-pc.com Order MapPoint 2006 Here https://secure.mp2kmag.com/?refer=support-PC |
| ||||
|
Give this a try Code: Try Dim omap As MapPoint.Map Dim oloc As MapPoint.Location Dim opin As MapPoint.Pushpin omap = AxMappointControl1.ActiveMap oloc = omap.GetLocation(51.577141, 0.291178, 250) opin = omap.AddPushpin(oloc, "Pushpin1") opin.BalloonState = MapPoint.GeoBalloonState.geoDisplayBalloon opin.Location.GoTo() Catch ex As Exception MessageBox.Show(ex.Message) End Try
__________________ John http://www.support-pc.com Order MapPoint 2006 Here https://secure.mp2kmag.com/?refer=support-PC |
| |||
|
Hi, Code: Symbol NewSymbol = MP.ActiveMap.Symbols.Add("c:\\test.bmp");
PP.Symbol = NewSymbol;
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
| Tags |
| create, puspinobject |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to get Lat, Lon from a Location object? | Van | MapPoint 2006/2009 Discussion | 7 | 02-01-2005 03:49 PM |
| c# zoom to object | starbuck | MapPoint 2006/2009 Discussion | 4 | 12-17-2004 05:32 PM |
| Loading some object from the map | Anonymous | MapPoint 2006/2009 Discussion | 0 | 07-25-2003 06:23 AM |
| route object to drawing object | Anonymous | MapPoint 2006/2009 Discussion | 1 | 05-09-2003 11:29 PM |
| DataMap object | Anonymous | MapPoint 2006/2009 Discussion | 2 | 08-30-2002 06:04 AM |