Slow loading listbox

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I didn't see this problem discussed in the newsgroups, so I thought I'd list it in case someone runs across it

I was trying to populate a listbox with string fields from a recordset. I was trying to add approximately 11,000+ items to my listbox. It was taking several minutes to do this in VB.NET. Now, in my VB6 app, from which I am upgrading from, it was only taking 3 seconds. I discovered that the Sorted property of my listbox was set to True and this was slowing the loading down. My VB6 app also had the Sorted property set to True, but that seemed to be working just fine. Perhaps a bug?
 
* "=?Utf-8?B?Sm9lbWFuYw==?= said:
I was trying to populate a listbox with string fields from a
recordset. I was trying to add approximately 11,000+ items to my
listbox. It was taking several minutes to do this in VB.NET.

Are you sure a user is able to select one of 11,000+ items?!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top