Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Visual Basic
Expertise: Beginner
Dec 5, 1997

Importing JPEG graphics during run-time.

Question:
How do I import a JPEG image into an application during run-time?

Answer:
The Image and Picture Box controls in VB5 can display JPEG images. Use the LoadPicture function to load an image file at runtime:

   imgCtl.Picture = LoadPicture("myfile.jpg")
Previous versions of VB provided no built-in support for JPEG files, so if you're using VB3 or 4, you'll have to use a third-party image control that supports them.
DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date