Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8946427
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T12:30:45+00:00 2026-06-15T12:30:45+00:00

I have a team program underway and my part is to add the ability

  • 0

I have a team program underway and my part is to add the ability to load either a single image or (more likely) a folder of images and them save them so that other aspects the program will be able to access them.

Here are my actual questions:

  1. I need an example on how to display a Open File or Open Folder dialog.
  2. An example of the best way to store all of the images in the folder.

Note: I will need to eventually display these images but it will be after another part of the program reorders them based on color.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T12:30:46+00:00Added an answer on June 15, 2026 at 12:30 pm

    Somthing like this maybe:

         Dictionary<string, Bitmap> images = new Dictionary<string, Bitmap>();
    
            string[] extensions = new string[]{".BMP",".JPG",".GIF",".PNG"};
            var fd = new System.Windows.Forms.FolderBrowserDialog();
            if (fd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                foreach (var file in Directory.GetFiles(fd.SelectedPath).Where(f => extensions.Contains(Path.GetExtension(f).ToUpper())))
                {
                    images.Add(Path.GetFileNameWithoutExtension(file), new Bitmap(file));
                }
            }
    

    Or Open File:

         var fd = new System.Windows.Forms.OpenFileDialog();
         fd.Filter = "Image Files(*.BMP;*.JPG;*.GIF;*.PNG)|*.BMP;*.JPG;*.GIF;*.PNG";
         if (fd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
             images.Add(Path.GetFileNameWithoutExtension(fd.FileName,new Bitmap(fd.FileName));
         }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a small command line program that uses the Team System API. When
I'm currently setting up CI for my project and have team city configure and
I am interested in the following scenario specifically. Suppose you have team that writes
my team have built many tools for our project using win forms and Visual
My team have 3 or 5 person.And we are working locally. and we decided
We have a team that built an agent in Mono using MonoDevelop on Mac
I have installed team foundation server 2012 express and am wanting to connect through
I have a team set up on bitbucket with multiple users, and I'm using
We have a team of developers in India. I will be visiting them for
We have a team of developers and a team of designers. Let me be

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.