I'm making a grid class to draw a grid on a form. I also want to be able to fill in blocks of the grid when you click one.
One problem is, the clicking isn't very accurate, and sometimes fills in the block next to it...and also, when resizing the form, blocks will be filled that were not filled before.
I'm keep track of each block's position in a 2D RECT array, and also each block's state (filled, not filled) in a 2D byte array (1 = filled, 0 = not).
I'm attaching the project...any help would be appreciated.
![]()





Reply With Quote