Test the speed that a listbox items are added..
The Original .NET code used the traditional VB6 methods, So I also added a second method that has the same output, however is about 80% faster...
Printable View
Test the speed that a listbox items are added..
The Original .NET code used the traditional VB6 methods, So I also added a second method that has the same output, however is about 80% faster...
Results of this test as run on my Vista dev system..
100 000 items test run..
VB6 = 5912
VB.NET (Method 1) = 7831
VB.NET (Method 2) = 1326
10 000 items test run..
VB6 = 577
VB.NET (Method 1) = 765
VB.NET (Method 2) = 109
Test results at 100,000:
vb6(method 1): 953
vb6(method 2): 203
vb.net(method 1): 1812
vb.net(method 2): 1031
Test results at 10,000:
vb6(method 1): 94
vb6(method 2): 16
vb.net(method 1): 156
vb.net(method 2): 94
This is the second method that Joeman has posted (in future please add the updates to the threads for that test...)
New Test run ..
100 000 Items..
VB6 Method 1: 6115
VB6 Method 2: 327
.NET Method 1: 7582
.NET Method 2: 842
10 000 Items..
VB6 Method 1: 609
VB6 Method 2: 31
.NET Method 1: 748
.NET Method 2: 63
Just a quick little something that i noticed...
The New API Listbox loading method for VB6 has a small flaw in it.. I dont have Access to a VB6 system at work so i cant look into it right now.. However here is a screen shot of the difference, Notice the background color of the listbox..
Left Normal method, Right API method..
I will look into that as soon as I can. It isn't much of a flaw, but more of the default settings. The listbox grabs the window background color and uses it.