Skip to main content
A newer version of this page is available. .

How to: Load Data from a KML File

  • 2 minutes to read

This example demonstrates how to load vector items from a KML file.

To accomplish this, do the following.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WinForms_MapControl_KmlFileDataAdapter {
    static class Program {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main() {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }
    }
}