Selasa, 22 Maret 2016

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

Bagikan

Jangan lewatkan

VB.NET - How To Load Image Into PictureBox In VB.NET
4/ 5
Oleh

Subscribe via email

Suka dengan artikel di atas? Tambahkan email Anda untuk berlangganan.