A combox can take any object as its item. I just tested with simple strings. Up to 8000 loading goes ok (slows down a bit) from 16000 items I had some notable delay. Closing the form went quick in all situations.
What I'm trying to say here is that your problem lies somewhere else then in the dropdown box. Though it is not a good idea to put so many items in a dropdown box, it is not impossible, nor should it yield too much performance degradation.
If you place objects in your combobox, the combobox will try to dispose of them before removing them. If you do no use a string-version of your objects, this process may cost a significant overhead. The solution is to convert your objects to strings before adding them to the combobox.
-- Abel --
Main Topics
Browse All Topics





by: mastooPosted on 2009-10-07 at 07:49:52ID: 25516127
A code profiler will show you exactly how much time is spent in which pieces of code, eliminating guesswork. If you're just getting started and already hitting performance issues, seems like a profiler would be indispensable.