CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2000
    Location
    Los Angeles, CA
    Posts
    1

    Slow Motion List Box

    I have upgraded my Windows 95 to Windows 98, MS Office 97 to MS Office 2000, and VB5 to VB6. I converted the database that I am using from Access97 to Access2000.

    I wrote a program in VB5 that worked just fine. However, I converted my program to VB6 and now have an unusual problem that I cannot seem to resolve.

    On one of my forms, I have a ListBox from which the end-user selects item(s). The list comes from a MS Access table. The ListBox Properties Sorted is set to True for the end-user to see the list alphabetically.

    When I converted the program to VB6, I was asked to up-date a couple of files. Because I was distracted by someone at work, I said "Yes" without seeing which files they were. Now I don't
    know which files they were so that I don't know how to undo whatever happened.

    Now, the ListBox fills and sorts the list in slow motion; i.e., about one item every ½ second. The end-user watches the ListBox fill and sort slowly. Aestheically, it looks horrible.

    What is causing this problem? Is there anyway that I can resolve this problem. I really want the end-user to see a sorted list.

    I have tried sorting the list first and then filling the ListBox, but that didn't work. Whenever the ListBox fills, it is in slow motion now matter what I do with the records.

    Apparently, these loaded files are in conflict with something. And, what ever is not working right is causing me nightmares.

    Any suggestions would be sincerely appreciated.


  2. #2
    Join Date
    Jan 2000
    Location
    MX
    Posts
    51

    Re: Slow Motion List Box

    the list is directly connected to a datasource? have you tryed using an index?


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured