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 7488589
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T14:59:45+00:00 2026-05-29T14:59:45+00:00

I need progress bar in windows form application but my process is not length

  • 0

I need progress bar in windows form application but my process is not length specific so I can’t maximum value to progressbar.

I must increment progress bar value using LongProcess class Run method elapsed time.

void start_click()
{
    button1.Enabled=false;

    Task.Factory.StartNew(()=>{
        Parallel.Foreach(files,f=>{
            LongProcess process =new LongProcess(); // Long-running process (is not my control)
            process.Run(f); 
                    //progressBarValueIncrement();

        });
    }).ContinueWith(t=>{
        // completed
        BeginInvoke(new Action(() =>    button1.Enabled=true));
    });
}

How can i implement this?

  • 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-29T14:59:45+00:00Added an answer on May 29, 2026 at 2:59 pm

    you could increment the progress bar with some percentage of the remaining unfilled value. This would mean that the progress bar never filled up though and would get fuller more and more slowly.

    So in the first increment you fill the progress bar 50%, then next increment you fill 50% of the remainder, so 25% for a total of 75%, then 50% of remaining 25%, total 87.5% etc etc.

    you may want to stage it so that the %age you used was based on how full the progress bar was, so start with 5% at the beginning so it doesn’t fill up too quickly at the start, then move to higher percentages so you can see the bar moving still near the end…

    If you don’t know how long something is going to take though, is a progress bar appropriate? Maybe you would be better with something that showed progress was happening, but not how much has been completed…

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

Sidebar

Related Questions

i need to use Progress bar in my application. It takes more than two
I have a form which can contain files and it shows a progress bar
How can i move a progress bar value( i am simulating a car mph
I need to output the i progress bars and update them all. But only
Consider System.Windows.Forms.StatusStrip . I have added a StatusStrip to my Windows Forms application, but
I need to display a progress bar in a DataGridView. I've searched around and
I am using the progress bar for the web view.I need to stop progress
Im not very familiar with refactoring but I feel like I need to do
I need to implement progress bar in an android project when an intent is
I need a progress bar that's kind of in an odd shape, I've attached

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.