Properly Using Invalidate On Form Resize

  • Thread starter Thread starter Alex Glass
  • Start date Start date
A

Alex Glass

When my form resizes the entire window needs to be to be invalidated.
However, invalidating the entire form results in an ugly blinking effect. I
would imagine there is a simple solution to this but searching the Net I
couldn't find anything relating to this issue.

Any ideas or links to more information would be greatly appreciated

-Alex Glass
 
* "Alex Glass said:
When my form resizes the entire window needs to be to be invalidated.
However, invalidating the entire form results in an ugly blinking effect. I
would imagine there is a simple solution to this but searching the Net I
couldn't find anything relating to this issue.

What do you want to do? Preventing the from from invalidating?
 
I want to invalidate the form, but when the user is dragging at the side of
the window, the invalidate function gets called multiple times in a short
timeframe and this causes a nasty blinking effect.

Heres the resize function:
Private Sub DrawTest_Resize(ByVal sender As Object, ByVal e As
System.EventArgs) Handles MyBase.Resize

' Code To Redraw Window Goes Here

' Force a Window repaint

Invalidate()



End If
 
Back
Top