Private Sub btnBrowse_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Using ofd As New OpenFileDialog ofd.Filter = "All files (*.*)|*.*" ofd.Title = "Select File" If ofd.ShowDialog() = Windows.Forms.DialogResult.OK Then MessageBox.Show("You selected " & ofd.FileName) End If End Using End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)