Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Collapse]WinForms Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Chart Control
  [Expand]Diagrams
  [Expand]Gauges
  [Collapse]Map Control
   [Expand]Getting Started
    Layers
   [Expand]Coordinate Systems
   [Expand]Map Image Data
   [Expand]GIS Data
   [Expand]Vector Data
   [Expand]Visual Elements
   [Collapse]Examples
    [Collapse]General
      How to: Add a Map Control at Design Time
      How to: Create a Map Control via Code
      How to: Get a Bing Maps Key
      How to: Add a Mini Map
      How to: Format Coordinates Displayed in the Navigation Panel
      How to: Show Additional Information Over the Map
    [Expand]Map Image Data
    [Expand]GIS Data
    [Expand]Vector Data
    [Expand]Printing and Exporting
   [Expand]End-User Features
   [Expand]Product Information
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]Printing-Exporting
  [Expand]PDF Viewer
   Reporting
  [Expand]Snap
  [Expand]TreeMap Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

How to: Add a Map Control at Design Time

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 2010, 2012, 2013, 2015 or 2017.

  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.

    To do this, locate the MapControl item in the Toolbox under the DX.17.2: Data & Analytics tab and drop it onto the form.

  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.

  5. After docking the Map control, it will appear as follows:

The MapControl has now been added to your application.

How would you rate this topic?​​​​​​​