in this post you can learned how add image in picture box vb.net and browse button using vb.net use the below coding then click on the button ...
Private Sub Button5_Click(sender As System.Object, e As System.EventArgs) Handles Button5.Click
OpenFileDialog1.FileName = ""
OpenFileDialog1.Filter = "All Picture Files|*.bmp;*.jpg;*.gif;*.png|JPEG (*.jpg)|*.jpg|Bitmap (*.bmp)|*.bmp|Graphics Interchange Format (*.gif)|*.gif|Portable Network Graphic (*.png)|*.png"
If OpenFileDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then
PictureBox1.Image = Image.FromFile(OpenFileDialog1.FileName)
End If
End Sub
Post a Comment