MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Drawing a polyline with Visual Basic Net - Array problem

This is a discussion on Drawing a polyline with Visual Basic Net - Array problem within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Using VB6 I had no problems drawing a polyline, but with VB Net I found trouble working with arrays. I ...


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
  #1 (permalink)  
Old 03-24-2005
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Drawing a polyline with Visual Basic Net - Array problem

Using VB6 I had no problems drawing a polyline, but with VB Net I found trouble working with arrays.

I use the following example code:


Dim obj(3) As MapPoint.Location
Dim oShape As MapPoint.Shape

obj(1) = AxMappointControl1.ActiveMap.GetLocation(40, -8.2, 1000)
obj(2) = AxMappointControl1.ActiveMap.GetLocation(40.4, -8.3, 1000)
obj(3) = AxMappointControl1.ActiveMap.GetLocation(40.1, -8.5, 1000)

oShape = AxMappointControl1.ActiveMap.Shapes.AddPolyline(ob j)
obj(1).GoTo()

Can anyone please tell me how to define an ArrayOfLocations that works!
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
array, basic, drawing, net, polyline, problem, 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
Addpolyline , Array , Visual Basic and Other languages Anonymous MapPoint 2006/2009 Discussion 2 08-26-2004 04:58 AM
Visual Basic 6.0 Anonymous MapPoint 2006/2009 Discussion 1 08-06-2004 07:17 AM
mappoint, visual c++ vs visual basic Anonymous MapPoint 2006/2009 Discussion 6 03-30-2004 10:17 PM
Problem method Map.copymap() in visual basic .net Anonymous MapPoint 2006/2009 Discussion 2 10-28-2003 03:05 AM
Visual basic or visual c++ in mappoint misterb83 MapPoint 2006/2009 Discussion 1 02-14-2003 09:31 AM


All times are GMT -5. The time now is 05:24 PM.


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