How to read images from a given folder using C#? I want to display those images into a PictureBox.
MARKAND911
-1
Junior Poster
Recommended Answers
Jump to PostJust to clarify, you say you want to load "images" (plural) into a picturebox (singular). What were you hoping to achieve? If you wanted to load more than one image you can use a foreach loop:
foreach (string file in Directory.GetFiles(@"C:\Pictures", "*.jpeg", SearchOption.AllDirectories)) { }
But you …
All 3 Replies
kvprajapati
1,826
Posting Genius
Team Colleague
Geekitygeek
480
Nearly a Posting Virtuoso
kdcorp87
4
Junior Poster in Training
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.