Back to Devexpress

How to: Add a Map Control at Design Time

windowsforms-15103-controls-and-libraries-map-control-examples-general-how-to-add-a-map-control-at-design-time.md

latest863 B
Original Source

How to: Add a Map Control at Design Time

  • Dec 06, 2022

This short introductory example describes how to add a Map control to your WinForms application at design time within Visual Studio.

  1. Run Microsoft Visual Studio.

  2. Create a new Windows Forms Application project by selecting FILE | New | Project… in the main menu. In the New Project window that is invoked, select Windows Forms Application and specify the project name.

  3. Add the MapControl component to your project.

  4. Click the Map control’s smart tag to invoke its actions list. In the actions list, click the Dock in Parent Container link. This allows the Map control to occupy all of the available space on the form.

The MapControl has now been added to your application.