Creating a Form with a MapControl

1. Start Visual Studio and create a new Windows Application

2. Add references to SharpMap and SharpMap.UI via NuGet Package Manager

3. Open the designer for Form1

4. In the toolbox, find the General category at the bottom and right click ans choose "Choose Items"


4. Browse to SharpMap.UI.dll and add that one (its located in the solution-file directory under packages/SharpMap.UI)

5. Click OK

You should now see the sharpmap controls in the general category

6. Drag the MapBox control into your form and you should now have a Map on your form

7. Select the control and in the properties dialog. Change the BackgroundColor to White


Last edited May 27, 2014 at 10:50 AM by petlof, version 13