30 Program using Picture Box Control to load an image at run time in VB.NET

Code:

Public Class Form1

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        If OpenFileDialog1.ShowDialog = DialogResult.OK Then
            TextBox1.Text = OpenFileDialog1.FileName

            PictureBox1.ImageLocation = TextBox1.Text
        End If
    End Sub
End Class





Ouput:


Picture Box control to load image at run time in VB.NET

Previous
Next Post »