Results 1 to 2 of 2

Thread: [2005] Threading & Progress bar

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2005
    Location
    Alaska
    Posts
    435

    Post [2005] Threading & Progress bar

    I have a progressbar like control (Actually a spinning one, like in SQL Server 2005) and I have a function called GetDBLicenses. This function populates the listview. My problem is that there is incredible delay when I have even 20 or so rows. The server is a desktop sql server instance of SQL Server Express.

    My real question is how can I first stop the delay (I think it's called threading). So I can have my progress bar actually play out smoothly instead of lagging the entire machine.

    Thanks guys

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: [2005] Threading & Progress bar

    Use a BackgroundWorker component. Perform your operation in its DoWork event handler. If you need to communicate with the UI then call the ReportProgress method and handle the ProgressChanged event.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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