In this sample code, I'm using OpenFileDialog class to browse a file.
Private fdlg As OpenFileDialog = New OpenFileDialog()
Private fdlg.Title = "Open File"
Private fdlg.InitialDirectory = "E:\"
Private fdlg.Filter = "All files (*.*)|*.*|All files (*.*)|*.*"
Private fdlg.FilterIndex = 2
Private fdlg.RestoreDirectory = True
If fdlg.ShowDialog() = DialogResult.OK Then
textBox1.Text = fdlg.FileName
End If
Title member let you set the title of the open dialog.
Filter member let you set a filter for types of files to open.
FileName member gives you the name of the selected file.