ControlPaint.DrawGrid

  • Thread starter Thread starter Tomasz Kulig
  • Start date Start date
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);
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top