Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1044733
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T15:52:29+00:00 2026-05-16T15:52:29+00:00

I have a WinForms app and am trying to add the ability to start

  • 0

I have a WinForms app and am trying to add the ability to start up multiple operations based on data entered in a datagridview. The operations must be run synchronously to monitor that they complete succesfully before inserting a row into the DB to indicate that the operation was succesfull. I also have a status event handler on the operation which will return the percentage of the running operation.

So far I am using threads to kick off the operations, however it is updating the progress of just one of the threads. When that thread is complete it is moving on the the next and will work that until completion. I would like them both or more to run simultaneously and be able to report the status of each.

I am basically looping through the rows in the grid and using the values there to instantiate a new class I created. I am then creating a thread and kicking off a sub to perform the operation from the new object. I think I may be close as I know they are all being started, but they are just running one after the other rather than all at once.

Any help is appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T15:52:30+00:00Added an answer on May 16, 2026 at 3:52 pm

    If they are running one after another, then it sounds like they are not running as threads. I suggest making sure your threads are running asynchronously.

    Then when they do run at the same time, you can use delegates to report back to the main process and show your progress.

    You can use this:

     Delegate Sub delShowProgressOne(ByVal Row As Integer, ByVal Percent As Double)
      Sub ShowProgressOne(ByVal Row As Integer, ByVal Percent As Double)
        If Me.InvokeRequired Then
          Me.Invoke(New delShowProgressOne(AddressOf ShowProgressOne), Row, Percent)
        Else
          DGV.Rows(Row).Cells("Progress").Value = Percent
        End If
      End Sub
    

    To display the progress from within your thread. It sends the actual calling of the function to the Form’s thread but only to do the ShowProgress.

    Hope this information helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WinForms app with a datagridview and a bindingsource. I want the
I have a winForms NET3.5SP1 app, and want to POST data to a PHP
I have a WinForms app written in C# with .NET 3.5. It runs a
I have a winforms app and i want to keep track of every time
So we have a winforms app that in the task manager should anywhere from
I have a .net winforms app which has a few animation effects, fade ins
Problem 1: I have a simple winforms app and I want to DataBind my
I have a legacy WinForms Mdi App in VB.Net 2.0 which I am adding
I have some code like this in a winforms app I was writing to
I have a combo box on a WinForms app in which an item may

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.