open file dialog in vb.net

The solution for “open file dialog in vb.net” can be found here. The following code will assist you in solving the problem.

‘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

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

Similar Posts