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
 

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