|
-
July 14th, 2000, 06:04 PM
#1
Avoid flicker in a ListView
I'm using VB5, How I will avoid the Flicker in a ListView Control when I update it?
Anybody have an Idea
Thanks
-
July 16th, 2000, 11:55 AM
#2
Re: Avoid flicker in a ListView
eliminate or reduce
Doevents
if you have them
-
October 26th, 2001, 05:15 PM
#3
Re: Avoid flicker in a ListView
I am not using do events anywhere but it is still flickering
-
November 3rd, 2001, 01:05 PM
#4
Re: Avoid flicker using api
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)
-
November 5th, 2001, 03:26 AM
#5
Re: Avoid flicker using api
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
...at present time, using mainly Net 4.0, Vs 2010
Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
all the other wonderful people who made and make Codeguru a great place.
Come back soon, you Gurus.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|