ListView Flicker On Resize

Winston

Junior Contributor
Joined
Jan 25, 2003
Messages
266
Location
Sydney, Australia
Has anyoen got any ideas how to avoid flickering when u resize a form and the listview is anchored and resized, causing it to flicker, ive tried extending hte listview and turning double buffer on doesnt work.

I'm trying to find a way for it to not paint on resize, basically ive tried calling BeginUpdate on the form resize event, but i have no idea how to figure out when the user has finished resizing, so that i can call end update

any ideas?

thanks
 
Try capturing the form's size on the load event in two variables (Width and height). On the form's resize event, after any other code that may get in the way, compare the old size to the current (new) size. Then, to prepare for the next time the user resizes, recapture the form's size in those variables.

Hope this helps
 
Back
Top