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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T07:25:18+00:00 2026-06-14T07:25:18+00:00

I want to add/update Image resources in a .NET project, so that when the

  • 0

I want to add/update Image resources in a .NET project, so that when the application is compiled the images will be available at runtime.

Due to having a large amount of images in several locations I want to do this using a separate vb.net project.

The only way I can see to do this is to copy the image file to the [Project]\Resources folder and then edit the [Project]\My Project\Resources.resx to use this image file, but this seems a bit hacky and I’m not sure how fussy Visual Studio is about the format of the resx file.

Is there some other way of doing this?

  • 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-14T07:25:19+00:00Added an answer on June 14, 2026 at 7:25 am

    You can use the ResourceWriter class to programmatically create a binary resource (.resources) file directly from code.

        using (ResourceWriter rw = new ResourceWriter(@".\CarResources.resources"))
        {
           Image im = Image.FromFile("C:\\sample.jpg");
            rw .AddResource("sample.jpg", im) 
          }
    

    You can also use Resource File Generator (Resgen.exe) to create a .resources file from a text file or a .resx file.

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

Sidebar

Related Questions

I want to add an image to my celltable , for that i use
I want add new Feed item on entity persist and update. I write this
I want to be able to add and update certain information. Now it was
I want to update Paypal Order status and add tracking number using API. but
Dynamically I want to edit/update hosts(etc/hosts) file to add domain. To edit hosts(etc/hosts) file
I have a website built with ASP.NET (3.5) and want add some level of
I want to post a status update to my feed and add a photo
In my desktop-based WPF-application I want to implement a toolbar with key actions (add,
I want to add a image file to my database using sqldatasource . steps
better to add an image to show what i mean. I want to get

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.