You are on page 1of 2

Build a Desktop GIS Application Using MapWinGIS and vb.

net - Part 1
By Hilary Mushonga

This tutorial seeks to introduce beginners to the development of desktop applications using MapWinGIS and vb.net The MapWindow ActiveX controls setup file can be downloaded from the MapWindow download page . After installation of the ActiveX controls you should now add the controls to the visual studio toolbox, to add the map control to the the visual studio tool box you right click on you tool box and select the "Choose items" from the pop up menu strip, click on the COM components tab from the dialog box that appears. then select "map control from the list of COM components and add it. the map control now appears on your tool box and can be added to your forms as any other control.

000001
The application can then be created by following these steps 1. Add the the map control to a form and name it appropriately (e.g mapMain) 2. Add five buttons to your form and name them as btnZoomIn, btnZoomOut, btnPan, btnZoomFullExtent and btnAdd, as shown below

3. You now have to add code to the click events of each Button and these are as follows

*for the add layer Button the code is as follows

*for the zoom to full extent the code is as follows

*for the zoom out the code is as follows

000002

*for the zoom in the code is as follows

The final application interface is as follows:

FOR MORE INFORMATION VIST: www.hilary-mushonga.blogspot.com