Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

MapPoint pushpins from variables

Posted on 2010-09-13
1
660 Views
Last Modified: 2013-11-26
I've done a lot of searching and couldn't find anything that I could get to work.  Basically, I have 4 variables (Name, Account ID, Latitude,  Longitude), and I just want to add a pushpin to a MapPoint map inside VB.Net, using the Lat and Long coordinates.  The name and Account ID can also be shown in the balloon for the pin.

Thanks.
0
Comment
Question by:LD147
1 Comment
 
LVL 1

Accepted Solution

by:
LD147 earned 0 total points
ID: 33666607
I came up with a solution that works, so this can be closed.


Dim oLoc As MapPoint.Location
        Dim omap As Map
        omap = AxMappointControl1.ActiveMap
        omap.Application.Units = geoMiles

        oLoc = omap.GetLocation(29.125, -82.182, 1)
        oLoc.GoTo()
        omap.AddPushpin(oLoc)

Open in new window

0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to prevent website from publishing with errors 9 54
REXEX help Part 2 2 39
Batch file or script with password 22 65
VB.NET 2008 Winforms Signing 13 32
Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question