Getting EasyGraphGrid into your toolbox

  1. Extract EasyGraphGrid.zip to a directory under Visual Studio Projects.
  2. Create a new project and go to design view.
  3. Look over at your toolbox and right click on the name of the tab where you want to put EasyGraphGrid and select "Add/Remove Items..."
  4. Click on the browse button and select graphicgrid.dll from the directory where you extracted it.
  5. Click "OK" and you will now have the EasyGraphGrid tool in your toolbox.

Get a registered version

Special Properties

ShowGrid This is true or false if you want the grid to display in the controls workspace
Example: object.ShowGrid = True
GridColor What color you want the grid to be
Example: object.GridColor = color.red
Cells How many grids you want (row x col)
Example: object.Cells = new size(10, 10)

Special Methods

setCell

Definition: setCell(Cell As Point, newColor As Color)
Example: object.setCell(New Point(9, 15), Color.White)
Note: This sets any one cell to be filled in with a color

Definition: setCell(Cells As Point(), newColor As Color)
Example: object.setCell({New Point(9, 15), New Point(9,16)}, Color.White)
Note: This sets a range of cells to be filled in with a color

Definition: setCell(Cell As Point, newBitmap As Bitmap)
Example: object.setCell(New Point(9, 15), new bitmap("cell.png"))
Note: This sets a cell to be filled with a bitmap

Definition: setCell(ByVal Cells As Point(), ByVal newBitmap As Bitmap)
Example: object.setCell({New Point(9, 15), New Point(9,16)}, new bitmap("cell.png"))
Note: This sets a range of cells to be filled in with a bitmap

removeCell

Definition: removeCell(Cell as Point)
Example: object.removeCell(New Point(9, 15))
Note: This removes a cell from the grid

Definition: removeCell(Cells As Point())
Example: object.removeCell({New Point(9, 15), New Point(9,16)})
Note: This removes a range of cells from the grid

clearCells Definition: clearCells()
Example: object.clearCells()
Note: This removes all cells from the grid

Special Events

gridClick This is fired when you click somewhere in the grid.
Returns: Object and GridPosition
gridDoubleClick This is fired when you double click somewhere in the grid.
Returns: Object and GridPosition
gridMouseMove This is fired when you move the mouse somewhere in the grid.
Returns: Object and GridPosition
gridMouseUp This is fired after you click somewhere in the grid.
Returns: Object, MouseEventArgs and GridPosition
gridMouseDown This is fired after you click somewhere in the grid.
Returns: Object, MouseEventArgs and GridPosition

GridPosition is always expressed as a Point. Lets say your grid was 10x10 and the user clicks in the 5th cell of the 5th row. In any of these special events the value of gridPosition would be point(5, 5).

Get a registered version