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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T23:07:48+00:00 2026-06-12T23:07:48+00:00

I have created a Windows Form application in C#. I designed interfaces with picture

  • 0

I have created a Windows Form application in C#. I designed interfaces with picture boxes and background pictures. But i need add pictures after it hard coded, I don’t know how to customize those interfaces. (Basically the Theme), background images and picture box images.

  • 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-12T23:07:49+00:00Added an answer on June 12, 2026 at 11:07 pm

    When do you want to do this changes? Hopefully you can add some event handler that allows you to add code that will execute when you want to do this modifications.

    As for how to do the changes. You will need the name of the member variable of the components.

    Say, you have a PictureBox that goes by the name PicMyPicture. Then you can do this:

    PicMyPicture.Image = image;
    

    or

    PicMyPicture.BackGroundImage = image;
    

    or similar for other properties and components.

    Please look at your IDE, chances are that it allows you to define the event handler. For intance you can find events of the components in the properties window of Visual Studio (are you using Visual Studio?), or similar locations in other IDEs.


    Ok, but the above has a problem… from where do you get that image?

    Well, it may come loaded from a file, from a resource in your application, downloaded from Internet, recovered from a database, or even generated at runtime.

    The more commons for your case are resources and files, so I’ll cover those.

    This codes loads an image from disk:

    var image = Image.FromFile(@"C:\path\path\some.png");
    

    You may be wondering… how can will I write the path if I don’t know where the final user will put application? well, to load a file from a relative path to the working directory of your application, you can do this:

    var path = Environment.CurrentDirectory;
    if (!path.EndsWith(Path.DirectorySeparatorChar.ToString()))
    {
        path += Path.DirectorySeparatorChar;
    }
    path += "some.png";
    var image = Image.FromFile(path);
    

    This codes loads an image from the resources in your application:

    var image = new Bitmap
    (
        System.Reflection.Assembly.GetEntryAssembly().
        GetManifestResourceStream("MyProject.Resources.myimage.png")
    );
    

    You have to make sure that you have added the resource to your project before hand. Check out the documentation on your IDE to find out how.

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

Sidebar

Related Questions

Im using c# .net windows application form. I have created many databases with many
Im using c# .net windows form application. I have many databases created using sql
I have created an application in windows form. Once I submit the application, the
I have created two forms in my Windows Application. One Form acts as a
I am working on Windows Form Application and have created a TextBox control and
Im using c# .net windows form application. I have created a database which has
I have created a windows form on a Windows Mobile 6.5 application. This screen
Background: I have created sample windows application for learning to implement localization. My each
For my C# Windows Form Application, I have created a flowlayoutpanel that contains several
I have created a Windows Form Application using Visual C# 2008 Express Edition with

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.