<p>What's the best way to allow a user to browse for a file in C#?</p>

```
```
using (OpenFileDialog dlg = new OpenFileDialog())
{
    dlg.Title = "Select a file";
    if (dlg.ShowDialog()== DialogResult.OK)
    {
        //do something with dlg.FileName  
    }
}
```
```