Refresh Part of Client Area

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I know that Invalidate allows you to invalidate only part of the client area and Refresh allows you to force the entire client area to update right now, but is there any way to force part of the client area (e.g., only the invalidated regions) to update right now (without using DoEvents)?

Thanks,
Lance
 
Hi Lance

Invalidate is an overloaded method. You can pass a region/rectangle
parameter to the method which will allow you to do as you wish.

hth
Richard
 
Hi Lance,
Control.Invalidate(region)
Control.Update()


Causes the control to redraw the invalidated regions within its client area
by executes any pending requests for painting.

Richard
 
Back
Top