Managing Resize Event?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dave Veeneman

    #1

    Managing Resize Event?

    I'm creating a custom control that uses the OnPaint event to paint a
    graphic. The graphic needs to resize itself when the control is resized.
    Right now, I'm trapping the Resize event to trigger the paint. However, the
    Resize event appears to fire repeatedly as the control is being resized,
    which causes the control to repaint repeatedly, chewing up CPU capacity.

    I'd like to have the control redraw only when the resize is complete, not
    while it is in process. Is there a simple way to do this? Thanks.

    Dave Veeneman
    Chicago


Working...