Friday 22 April 2016

Using Open File Dailog Box in C#







Open File Dialog Box
OpenFileDialog dlg = new OpenFileDialog();
            dlg.ShowDialog();

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                string fileName;
                fileName = dlg.FileName;
                MessageBox.Show(fileName);
            }


No comments:

Post a Comment