J
jerry chapman
Based on a mouse click I change something on the screen. I then want to
repaint the screen to show the change. When I tried to use .Invalidate in my
mouse routine, I got a compilation error.
Here is my OnPaint code:
protected override void OnPaint(
PaintEventArgs paintEvent )
{
Graphics g = paintEvent.Graphics;
Where can I put the .Invalidate code, and what should the part before the
"." be?
repaint the screen to show the change. When I tried to use .Invalidate in my
mouse routine, I got a compilation error.
Here is my OnPaint code:
protected override void OnPaint(
PaintEventArgs paintEvent )
{
Graphics g = paintEvent.Graphics;
Where can I put the .Invalidate code, and what should the part before the
"." be?