PDA

View Full Version : Create a grid in Visual Basic


gusblake
12-01-2009, 05:53 PM
Hi,
I am just starting out writing a VB program in Visual Studio, so I don't have any code yet except an empty project, but I was wondering if someone could tell me how to create a grid of squares which can be accessed (background color changed, etc) by coordinates? This is for a version of the game 'snake'. The size of the grid (and the squares) must be user defined. I already have an idea of how I'll code the actual game because I've written a version in JS (www.threeguesses.co.uk/snake), I'm just stuck on getting the grid set up.

Cheers,
Gus