|
Improve Performance of ListBoxes
Posted by
md3
on
Sunday, July 20, 2003 (PST)
If you are loading a lot of items into a ListBox or ComboBox, you can speed up the operation considerably by using BeginUpdate() and EndUpdate().
|
1. Improve Performance of ListBoxes If you are loading a lot of items into a ListBox or ComboBox, you can speed up the operation considerably by using BeginUpdate() and EndUpdate(). Typical code looks like this:
ListBox1.BeginUpdate() ' Some code here to load many items into the list box. ListBox1.EndUpdate()
This process tells the ListBox to dispense with routine operations such as painting the screen during the loading process. Load times can be reduced by more than 50% using this technique.
|
|