I was tasked to make a basic Pegz game in C# as an assignment for school. The rules can be found here: http://tinyurl.com/6wro5xc. I’m not looking for a step by step how to build the game, but rather just how to get started. I’m fairly new to C# application development, but have a background in C# web development.
So far I have a flow control layout panel with a 5×5 grid of regular panels within it. Within each regular panel I have a picture box containing the image of the peg. All panels are full except one remains empty. See attached image for an example. In order to keep track of the 5×5 grid of panels I thought I would use a two dimensions BitArray that would hold the coordinates of the panel in the grid, and would be true if a peg exists or false if it does not.
My first question would be how do I go about tieing the grid to the array. In other words: how would I know that [0][0] of the array would represent the top left of the grid? I have the following constructor for the array BitArray[,] board = new BitArray[5,5]; I know that I will first have to cycle through the array and assign all but one of the values to true, but then I will need to take that data in the array and apply it to the Grid. The concept of how to bind that array to the grid is the part I am stuck at.
I appreciate any help.

There are undoubtedly better ideas than this one, but nonetheless here’s something to get you started…
Instead of making an array of bits, make an array of a class you create to represent a point which will also contain methods to set/unset the point. Then you could do something like MyGrid[x][y].Set();.
You might also look into using collections instead of arrays too. I rarely use arrays for anything anymore except low level or legacy type operations that require them.