STOPPING Automatic VISUAL UPDATE of ListBox by Windows?
Posted on 1998-11-26
Is there a way to stop that visual update that windows does to a listbox control when ie. you set an item in the box to be checked with a listbox1.Selected(0) = true? Everytime i call the select function to have an item selected it ALWAYS shows it checking onscreen. This is completely fine, however, when i have to select 2000 items that reside in the box seeing each one checked on takes MUCH LONGER than if it were to do it in the background (non-visible) and then have it display the final list all checked in one update.
I am sure most of you will say "just have another ListBox with the same content, make it invisible, and have all the items checked on and once it is done just set the original to invisble and the new to visible". I can do this but i don't want to be so wasteful with memory. Is there a function in vb to tell a control to not have its visually changed contents displayed until i want it to?