I have a listview control that I use to display about 1200 or so lines of data. This list is refreshed every 5 seconds. I was having major problems getting that much data into the listview fast enough because of the listview repainting after each line add. I am currently using this code here which works "ok". 2 problems here, I have another form that can have about the same amount of data refreshed every 5 seconds, the main form (the one that lockwindow is being used for) puts some of the data into the second form's listview and I haven't been able to get something like LockWindowUpdate secondform.hWnd to work for some reason. Thats the main problem. Second problem is that lockwindow updates the entire screen which causes flashing if my prog is minimized or out of view. Listview stinks but it's a large program and I don't want to swap to something else at this point, how can I lock the second window or speed the display of data up. It appears it's repainting after each line it's adding, have played with clipcontrols and autoredraw on the form no help. HELP!!
Private Declare Function LockWindowUpdate Lib "user32" (ByVal hwndLock As Long) As Long
'stop window from refreshing
'adding data to listview here
'refresh window once data is added.