I need to load a single jpg image to a windows form at run time.
file name / path is a given.
Any insight on how to do this?
DarwinRock 0 Newbie Poster
Recommended Answers
Jump to PostWell, there are plenty of methods to do this, one I would try first before other things would be to make a picture box, and make the default image the image you want to display, set the default Visible property to false. Then during runtime, set Visible to true, read …
Jump to PostThe System.Drawing name space holds a class called Image. It is used as a type and has instance methods. It cannot be directly initialized but is easily used a runtime.
Image pic = Image.fromFile("path to image");
then you can show the image anyway you like, as the image property …
All 7 Replies
WargRider 10 Junior Poster
DarwinRock 0 Newbie Poster
DarwinRock 0 Newbie Poster
Diamonddrake 397 Master Poster
DarwinRock 0 Newbie Poster
WargRider 10 Junior Poster
DarwinRock 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.