J
John Duval
Hi Petrosky,
I'm not sure exactly what you're looking for -- do you want the user to
browse for a file on the system using a GUI? If so, then check out the
OpenFileDialog class. For example:
OpenFileDialog ofd = new OpenFileDialog();
DialogResult dr = ofd.ShowDialog();
if (dr == DialogResult.OK)
{
string filename = ofd.FileName;
MessageBox.Show(filename);
}
John
I'm not sure exactly what you're looking for -- do you want the user to
browse for a file on the system using a GUI? If so, then check out the
OpenFileDialog class. For example:
OpenFileDialog ofd = new OpenFileDialog();
DialogResult dr = ofd.ShowDialog();
if (dr == DialogResult.OK)
{
string filename = ofd.FileName;
MessageBox.Show(filename);
}
John