by George Scott (12 Submissions)
Category: Graphics
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Sat 18th October 2003
Date Added: Mon 8th February 2021
Rating: (1 Votes)
This Code Shows You How To Load An Image Only 3 Lines Of Code
'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