How can I load an image (JPG) from a file (not resource) and display it on a CStatic object(picturebox)?

Posted on 2006-11-22
Last Modified: 2013-11-20
How can I load an image (JPG) from a file (not resource) and display it on a CStatic object(picturebox)?

any help will do. sample code will be a good help.

Question by:haroldxious
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Accepted Solution

bdunz19 earned 50 total points
ID: 18001284
Hi haroldxious,

In my experience the CImage class is the way to go for all image operations.

Please look at this tutorial as halfway down it describes exactly what you are asking for:

Good luck,

Expert Comment

ID: 18372218
Hi Dan,
My solution, as long as haroldxious posted his question correctly, is 100%.


Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
bigDiff challenge 17 135
lucky13 challenge 11 158
haveThree challenge 22 123
moto 4g phone enable finger print 4 47
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below.…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question