July 14th, 2000, 06:04 PM
I'm using VB5, How I will avoid the Flicker in a ListView Control when I update it?
Anybody have an Idea
Thanks
Anybody have an Idea
Thanks
|
Click to See Complete Forum and Search --> : Avoid flicker in a ListView July 14th, 2000, 06:04 PM I'm using VB5, How I will avoid the Flicker in a ListView Control when I update it? Anybody have an Idea Thanks makai July 16th, 2000, 11:55 AM eliminate or reduce Doevents if you have them jrobertraj October 26th, 2001, 05:15 PM I am not using do events anywhere but it is still flickering SACEIT November 3rd, 2001, 12:05 PM There is an api (Lockwindow) you can use to lock the graphic update on your form (if it is a Child one, lock the Mdi, not the Child). Locking graphic before and unlocking after the update, will avoid all kind of flickering. (remeber: to unlock = pass False to the api and you cannot lock more than one window each time) Cimperiali November 5th, 2001, 02:26 AM The api is Private Declare Function LockWindowUpdate Lib "user32" (ByVal hwndLock As Long) As Long To unlock: LockWindowUpdate False Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, TCartwright, Bruno Paris, Dr_Michael and all the other wonderful people who made and make Codeguru a great place. Come back soon, you Gurus. The Rater codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |