1
Vote

The specified path does not lead to a file

description

public partial class Form1 : Form
{
    public Form1()
    {
        InitializeComponent();

        SharpMap.Layers.VectorLayer vlay = new SharpMap.Layers.VectorLayer("states_ugl");
        vlay.DataSource = new SharpMap.Data.Providers.ShapeFile("~\\states_ugl\\states_ugl.shp", true);
        mapBox1.Map.Layers.Add(vlay);
        mapBox1.Map.ZoomToExtents();
        mapBox1.Refresh();
        mapBox1.ActiveTool = SharpMap.Forms.MapBox.Tools.Pan;
    }
}

comments