When I say I’m a beginner, I really am as fresh as you can get so apologies up front!
What I am trying to do is in a form have two picture boxes and a button. When I click on the button it picks 2 new images from my image folder and it will do this a total of 5 times
Any ideas how I approach this – Here’s what I have so far for the button click
private void button1_Click(object sender, EventArgs e)
{
pictureBox1.Load(@"C:\Resources\PICT01.JPG");
pictureBox2.Load(@"C:\Resources\PICT02.JPG");
}
Any answers really need to be basic as I am just learning ! Thanks in advance
You need to create a global int to keep track of how often you have switched pictures, and handle that number in your button1_click.
I’m no expert myself but here’s how i would do it. A switch is ideal here because you need to check 5 different possibilities.