VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



This Code Shows You How To Load An Image Only 3 Lines Of Code

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

Rate 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

Download this snippet    Add to My Saved Code

This Code Shows You How To Load An Image Only 3 Lines Of Code Comments

No comments have been posted about This Code Shows You How To Load An Image Only 3 Lines Of Code. Why not be the first to post a comment about This Code Shows You How To Load An Image Only 3 Lines Of Code.

Post your comment

Subject:
Message:
0/1000 characters