string path = System.IO.Path.GetDirectoryName(filename);
OpenFileDialog openFileDialog1 = new OpenFileDialog(); if (openFileDialog1.ShowDialog() == DialogResult.OK) { string p = openFileDialog1.FileName; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)