T
Tomasz Kulig
Hello...
I've some annoying problem when I use DrawGrid method.
It seems that it ignores nOffsetX and nOffsetY (refer to example code).
Bounding rectangle can be moved, but points of grid are being drawn
always in the same positions of screen.
Do you have some idea how to fix it? I want to see dots exactly drawn
from specified point.
Code example.
int nOffsetX = 5;
int nOffsetY = 5;
ControlPaint.DrawGrid(
g,
new Rectangle(nOffsetX, nOffsetY, 100, 100),
new Size(10, 10),
Color.White);
I've some annoying problem when I use DrawGrid method.
It seems that it ignores nOffsetX and nOffsetY (refer to example code).
Bounding rectangle can be moved, but points of grid are being drawn
always in the same positions of screen.
Do you have some idea how to fix it? I want to see dots exactly drawn
from specified point.
Code example.
int nOffsetX = 5;
int nOffsetY = 5;
ControlPaint.DrawGrid(
g,
new Rectangle(nOffsetX, nOffsetY, 100, 100),
new Size(10, 10),
Color.White);