Код: Выделить всё
string fileName = "";
OpenFileDialog openFileDialog = new OpenFileDialog();
openFileDialog.Filter = "Shapefiles(*.shp)|*.shp";
openFileDialog.Title = "select shapefile";
if (openFileDialog.ShowDialog() == DialogResult.OK)
{
fileName = openFileDialog.FileName;
}
Подробнее здесь: https://stackoverflow.com/questions/797 ... -very-slow