Relative Content

Tag Archive for c#winformsmultidimensional-array

Displaying an image 25 times (5×5) in windows forms using 2 for loops, image displays 1×25

Today is the first day of the course Programming 2 (C#) and I need to display a small jpg 25 times in a 5×5 grid using 2 embedded for loops. The first course only covered console apps so this is my first foray into Forms and using external files and this is the first exercise in the book.
I have the program working but the images display in a single row instead of 5 rows of 5. Not entirely sure what is going wrong as the for loops should be correct as far as i can see(?) I know it’s going to be something really stupid and obvious!
Here’s my code…