Dear guys,

Can anyone help me out to open up a windows default dialog box in C# to browse folder and the folder path be displayed in the lab/edit box.


Close this thread, I think you open similar one and it's solved!

OpenFileDialog fdlg = new OpenFileDialog();
            fdlg.Title = "C# Corner Open File Dialog";
            fdlg.InitialDirectory = @"c:\";
            fdlg.Filter = "All files (*.*)|*.*|All files (*.*)|*.*";
            fdlg.FilterIndex = 2;
            fdlg.RestoreDirectory = true;
            if (fdlg.ShowDialog() == DialogResult.OK)
                string x = fdlg.FileName;