CodeItBetter Programming Another VB Programming Blog

How to load a picture in picture box by selecting the picture using Common dialog control.

Posted on January 4, 2009
1
2
3
4
5
6
7
'Controls - How to load a picture in picture box by selecting the picture using Common dialog control.
'Insert a Picture box, Command button and a Common Dialog control in your form

Private Sub Command1_Click()
    CommonDialog1.ShowOpen
    Picture1.Picture = LoadPicture(CommonDialog1.Filename)
End Sub
Filed under: Controls Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


 

No trackbacks yet.