Visual Studio C# MP2002 Control creation

Anonymous
11-29-2002, 09:31 AM
Hi,

As many of your other users, I am trying to a implement MP2002 control in my ASP page, using C#. You have many "how-to" examples in VB,...not in C#,...so I pasted in what I have.

//Create new Map
MappointControlClass ctlMap1 = new MapPoint.MappointControlClass();
ctlMap1.NewMap(MapPoint.GeoMapRegion.geoMapNorthAm erica);
ctlMap1.ActiveMap = True;
//

I know it is wrong but where ?

I am trying to open a new map on my mappoint control object,...then start coding around that object in "Design-time".

Any thoughts ???

Thanks,

Jacek

John Meyer
12-05-2002, 08:32 PM
I do not know c# but I was wondering if you are sure about the last line, setting the ctlMap1.ActiveMap = True? I would thing the active map is already set from the line right before it?

Anyway, If you have not worked it out hopefully someone can jump in and give you a hand. If you do get it working, please post back here so that we can have some C# examples. Thanks.

John

 
Web mp2kmag.com
mapforums.com