G
Guest
Hi,
On a simple form, I have a ListBox control. This listbox control is loaded
with around 800 text items of somewhat short length. There are also some
other controls on the form, buttons. When the form need to repaint itself
after e.g. maximize, it happens somewhat slow, I can see the buttons redrawn
one by one. I realy do not understand why. If I load twice the amount of text
into the list control, the form repaint itself twice as slow. Memorywise it
should a piece of cake - my computer is running xp on a 1gb core 2 duo box.
All other programs I develop and that has a far bigger memory footprint runs
without any delay at all. The list control is onlys showing some 30 top text
items. Anything to do about this. The listbox is embedded in a
splitcontainer. Is the listbox repainted (re-layed out) for every paint event
for other controls on a form????
Any ideas?
On a simple form, I have a ListBox control. This listbox control is loaded
with around 800 text items of somewhat short length. There are also some
other controls on the form, buttons. When the form need to repaint itself
after e.g. maximize, it happens somewhat slow, I can see the buttons redrawn
one by one. I realy do not understand why. If I load twice the amount of text
into the list control, the form repaint itself twice as slow. Memorywise it
should a piece of cake - my computer is running xp on a 1gb core 2 duo box.
All other programs I develop and that has a far bigger memory footprint runs
without any delay at all. The list control is onlys showing some 30 top text
items. Anything to do about this. The listbox is embedded in a
splitcontainer. Is the listbox repainted (re-layed out) for every paint event
for other controls on a form????
Any ideas?