PDA

Click to See Complete Forum and Search --> : [2.0] Work with Mappoint App


johnweidauer
Feb 5th, 2007, 03:13 PM
I have a machine that I have Mappoint 2006 installed. I am trying to write an app in C# that will allow me to open Mappoint and add pushpins. I have done this in VB.NET 2005, but I am not sure where to begin with C#. Anyone help me with this? I do not want to use the Mappoint Control.

Thanks folks.

Current VB.NET code
Public Class Form1

Dim aMap As MapPoint.Application

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

If aMap.Application Is DBNull.Value Then
aMap = CreateObject("mappoint.application")
aMap.Visible = True
aMap.UserControl = True

aMap.NewMap()
aMap.WindowState = GeoWindowState.geoWindowStateMaximize
End If

...

johnweidauer
Feb 7th, 2007, 02:01 AM
ummmmmmmmmmmmm...

*bump*

I can find chunks of code, but nothing to get me started.

Thanks.