Tutorial Programming

Tutorial basic, Visual Studio VB.NET 2013 PictureBox



Hallo sahabat saya akan menjelaskan bagaimana membuat PictureBox pada visual studio 2013, oke langsung aja





Jika ingin mengubah picture box menjadi dinamik?

Berikut coding programnya :

Public Class Form1
'Belajar PictureBox Ary EJFA
Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click
        Dim ofd As New OpenFileDialog
        If ofd.ShowDialog = DialogResult.OK Then
            If ofd.FileName <> String.Empty Then
                Me.PictureBox1.Image = Bitmap.FromFile(ofd.FileName)
            End If
        End If
     End Sub
End Class

Sekian tutorial saya sahabat semoga bermanfaat yah.

No comments:

Post a Comment

Tutorial Programming Designed by Templateism | Ary EJFA Copyright © 2015

Theme images by richcano. Powered by Blogger.