Private Sub SelectFileButton_Click(sender As Object, e As EventArgs) Handles SelectFileButton.Click ' Show the Open File dialog. If the user clicks OK, load the ' picture that the user chose. Dim ofd As New OpenFileDialog If ofd.ShowDialog = DialogResult.OK Then If ofd.FileName <> String.Empty Then PictureBox1.Image = Bitmap.FromFile(ofd.FileName) End If End If End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)