Everytime I change/add/remove items in a listview, and the listview has lots of items, it will take a while to reload them sometimes. Is there a quicker/easier way to refresh a listview?
Printable View
Everytime I change/add/remove items in a listview, and the listview has lots of items, it will take a while to reload them sometimes. Is there a quicker/easier way to refresh a listview?
I think the best you can do is stop the window from updating until you are finished loading it...
VB Code:
Private Declare Function LockWindowUpdate Lib "user32" Alias "LockWindowUpdate" (ByVal hwndLock As Long) As Long Call LoackWindowUpdate(Listview1.hWnd) 'Load the items Call LockWindowUpdate(0&)
:)
Related, sort of. You can use a flexgrid which has a refrsh property that can be turned on/off. (Sucks that one was not included for the listview)