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 3751558
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T09:05:31+00:00 2026-05-19T09:05:31+00:00

this is my first question here. I’ve made a small quiz project about the

  • 0

this is my first question here.

I’ve made a small quiz project about the 199 world’s states via Visual Studio C#.
therefor I collected all flags of every country and put them into a folder – you can imagine that i collected MANY.

To run my current project i need the folder with all these .gif images –
otherwise the startup will end in a fatal error. 🙁

My question is if it is possible to integrate the images into my .exe file so that i can run it without that nasty folder. (Also important for future project with even more content!)

And if it is possible – how?
It would also be nice if you let me know how to use the images – what pathes they have got etc … =)

Thanks in advance!

Robbepop

  • 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-05-19T09:05:31+00:00Added an answer on May 19, 2026 at 9:05 am

    You can add a resource file to your application, by going to

    Project >> Your Project Properties >>
    Resources >> Create A Resource File.

    You can then simply add any image to your application and reference it via your code. Select Images from the drop down on the top of the menu, and then click Add Resource >> From existing file.

    After you save your resource file, you can then access your images via code, e.g.

    > Image img =
    > YourProject.Properties.Resources.Image1
    

    However, with the number of images you have, and what I would believe you are using them for, I would suggest using a Image List, which you can add all of your images to, and access them via their key or index. e.g.

    Image img = imageList1[0];  
    

    Or

    Image img = imageList1["US"];
    

    This can be found in your toolbox.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

this is my first question here, so excuse me if I made any mistakes!
this is my first question here so I hope I can articulate it well
Greetings to all! This is my first question here on stackoverflow. I have a
this is my first question to stackoverflow so here it goes... I use cruise
This is my very first question so I am a bit nervous about it
This is my first question here but I'm sure there are many more to
This is my first question here and I hope it is simple enough to
this is my first question here. I have the following jquery code: $(document).ready(function(){ $(a).click(function(){
this is my first question here :) I know that I should not check
This is my first question here on stack overflow. i need help on a

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.