patrick
11/24/2004 3:39:00 AM
Hi Ng,
i want to draw a grid on a panel and I tried out this here, but it didn't
work out (I definded this in the constructor of the panel):
this.SetStyle(ControlStyles.UserPaint, true);
ControlPaint.DrawGrid(System.Drawing.Graphics.FromHwnd(this.Handle),
this.ClientRectangle, new Size(8, 8), Color.Red);
Do you know why? Where do I have to use the ControlPaint.DrawGrid()
Thanks in advance and regards,
Patrick