Hello!
I am new to programming and c# and im trying to create a application that will guide you through a school with pictures. So you would be able to press forward, backward, left and right and it will lead you to a new picture. What I dont understand is how to change the picture the second time i press the forward button for example. Now it just changes once.
The code i have is :
Image[] images = new Image[40];
private void btnFram_Click(object sender, EventArgs e)
{
images[0] = Image.FromFile(@"C:\Users\Administrator\Desktop\PICS\b.JPG");
images[1] = Image.FromFile(@"C:\Users\Administrator\Desktop\PICS\c.JPG");
images[2] = Image.FromFile(@"C:\Users\Administrator\Desktop\PICS\d.JPG");
images[3] = Image.FromFile(@"C:\Users\Administrator\Desktop\PICS\e.JPG");
picBild.Image = images[0];
}
Would be nice to know how to display picture 1 after 0 and so forth. I have tried a for loop but I didnt get it to work.
Grateful for help :)