ImageGrid component or something like that
I am writing a client for an online game in C #. The client (game) has inventory:
alt text http://img232.imageshack.us/img232/5606/inventoryplain.jpg
The 42 blocks on the left and 12 blocks on the right must contain images of "virtual elements" that the "virtual symbol" contains.
I added 54 panels (42 left + 12 right) on top of each box with the idea of using the BackGroundImage property to add an image to a specific box.
Most of the things in this game are third party, so I get the position of the position and the item via a TCP client.
The problem is that if I get position "13" and assign that value to an integer variable named "position" I cannot call
"panel + position + .BackGroundImage = image
I either have to find a way to do this, or remove all panels and use one component, but I still have this problem.
Any help on this would be appreciated! Thanks in Advance.
a source to share