- Home
·
- Graphics
·
- This Code Shows You How To Load An Image Only 3 Lines Of Code
This Code Shows You How To Load An Image Only 3 Lines Of Code
This Code Shows You How To Load An Image Only 3 Lines Of Code
Rate This Code Shows You How To Load An Image Only 3 Lines Of Code
(1(1 Vote))
'Paste This Code In To The Code Window
'Add Microsoft Windows Common Dialog 6.0 To Components
'Add Image And Name It Image1
'Add Common Dialog And Name It CommonDialog1
Private Sub Form_Load()
CommonDialog1.Filter = "JPEG (*.jpg)|*.jpg" 'This Allows You To Load Jpeg Images
CommonDialog1.ShowOpen 'This Launches CommonDialog1
Image1.Picture = LoadPicture(CommonDialog1.FileName) 'This Loads The Jpeg File You Have Selected
End Sub
This Code Shows You How To Load An Image Only 3 Lines Of Code Comments
No comments yet — be the first to post one!
Post a Comment