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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T19:15:15+00:00 2026-05-13T19:15:15+00:00

the following is an example of test code, it maybe not be completely correct:

  • 0

the following is an example of test code, it maybe not be completely correct:

        for (int i = 0; i < MAXCOL; i++)
        {
            for (int j = 0; j < MAXROW; j++)
            {
                HomeArrayPicBox[i, j].Image  = Properties.Resources.scan;
            }
        }

my issue is instead of all pictureboxes displaying the same picture, i need to increment the image also. e.g. Properties.Resources.scan1, Properties.Resources.scan2 …

please adive how best to achive this.

thank you.

  • 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-13T19:15:15+00:00Added an answer on May 13, 2026 at 7:15 pm

    You can get an object from a Resources file by name like this:

    HomeArrayPicBox[i, j].Image = 
        (Image)Properties.Resources.ResourceManager.GetObject("Scan" + i);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Following is an example code test harness which emulates the problem I am experiencing.
I have the following example code <?php `echo test > /tmp/test.txt`; $f=fopen(/tmp/test.txt,w+); `rm /tmp/test.txt`;
my gut feeling says I shouldn't do the following. I don't get any warnings
I have a simple test application with a GridView containing an array of buttons,
Once again, I'm questioning a longstanding belief. Until today, I believed that the alignment
I have recently discovered an annoying problem in some large program i am developing;
I have a parent class called Exam and that has many instances of a
I'm trying to understand why JSLint complains about an implied global variable in the
I recently stumbled upon the Object.create() method in JavaScript, and am trying to deduce
I'm still learning mockito and right now I'm learning how to inject mocks. I

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.