Visual Studio file selector

this should do the trick:

string path;
OpenFileDialog file = new OpenFileDialog();
if (file.ShowDialog() == DialogResult.OK)
{
    path = file.FileName;
}

the string path should now contain the selected file path

**Edit: ** As mentioned in a comment below, OpenFileDialog is disposable so should be wrapped in a using statement.


OpenFileDialog should suit your needs. You'll probably need to put a button (or some other clickable type UI element) on the page that will pop the dialog up. Then once the user has selected a file and clicked "OK" you'll just check the response for which file was selected.