i have a picturebox that has a hexagon grid drawn on it:
at runtime, as i move my mouse over the picturebox, i want to calculate the columnIndex + rowIndex that contains the mousePointer.
the cells are hexagonal 25 pixels wide * 23 pixels tall.
these are the polygon points that describe a cell:
Dim points() As Point = {New Point(12, 0), New Point(25, 5), New Point(25, 18), New Point(12, 23), New Point(0, 18), New Point(0, 5)}
to draw the grid, i use the array of points for each cell, with an offset.
thanks for any help



Reply With Quote