vb.net file dialog code example
Example: open file dialog in vb.net
'How to open the file path in Visual Basic
OpenFileDialog1.Filter = "TEXT FILE | *.txt |PDF FILE |.pdf |ALL FILES |*.*"
If OpenFileDialog1.ShowDialog = DialogResult.OK Then
For x = 0 To OpenFileDialog1.FileNames.Count - 1
MsgBox(OpenFileDialog1.FileNames(x))
Next
End If