VB.NET - How To Load Image Into PictureBox In VB.NET

vb.net load image

VB.NET - How To Browse Image Into PictureBox Using VB.NET 

                                                                                                                         

In This VB.NET Tutorial We Will See How To Browse And Display Image Into PictureBox In VB.NET Programming Language.


Project Source Code:

Public Class VB

   
 Private Sub BtnBrowseImage_Click(sender As Object, e As EventArgs) Handles BtnBrowseImage.Click

        Dim opf As New OpenFileDialog

        opf.Filter = "Choose Image(*.jpg;*.png;*.gif)|*.jpg;*.png;*.gif"

        If opf.ShowDialog = DialogResult.OK Then

            PictureBox1.Image = Image.FromFile(opf.FileName)

        End If

    End Sub
End Class

///////////////OUTPUT:

vb.net browse image into picturebox
VB.NET Load Image






Share this

Related Posts

Previous
Next Post »

2 comments

comments