Am 27.12.2011 um 15:36 schrieb Beatrix Willius:
> I don't remember which was the upper number of rows that are loaded fast, but
> for 10.000s of lines forget the Real listbox. The DataGrid is much, much
> faster because it only loads the data it needs. But it's so much fun to use.
Well, maybe, but that doesn't answer my question. Did you try setting the
listbox invisible while it's loading the data?
That really really helps. Look:
dim start,ittook as double
self.Listbox1.DeleteAllRows
start=Microseconds
Self.Listbox1.Visible=false
for i as Integer=0 to 10000
Self.Listbox1.AddRow("A","B","C","D")
next
Self.Listbox1.Visible=true
ittook=Microseconds-start
MsgBox("It took "+str(ittook/1000000)+" seconds")
This code populates the listbox in 0.08 seconds on my 2,66 Ghz MacBook. That's
not slow. It does take half a second if you don't set the listbox invisible.
Maximilian Tyrtania
http://www.contactking.de
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info