good day I need to get the location of a file selected with OpenFileDialog in c # and put that location in a string variable, I appreciate your help
good day I need to get the location of a file selected with OpenFileDialog in c # and put that location in a string variable, I appreciate your help
OpenFileDialog choofdlog = new OpenFileDialog();
choofdlog.Filter = "All Files (*.*)|*.*";
choofdlog.FilterIndex = 1;
choofdlog.Multiselect = true;
if (choofdlog.ShowDialog() == DialogResult.OK)
{
string sFileName = choofdlog.FileName;
}
Taken from How to get file path from OpenFileDialog and FolderBrowserDialog ?