ControlPaint.DrawGrid Method (Graphics, Rectangle, Size, Color)
Draws a grid of one-pixel dots with the specified spacing, within the specified bounds, on the specified graphics surface, and in the specified color.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
public static void DrawGrid( Graphics graphics, Rectangle area, Size pixelsBetweenDots, Color backColor )
The Size that specified the height and width between the dots of the grid.
The backColor parameter is used to calculate the fill color of the dots so that the grid is always visible against the background.
Available since 1.1