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

  • SEARCH
  • Home
  • 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 6536887
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:33:04+00:00 2026-05-25T10:33:04+00:00

I have a Background Task that uploads a file, and i want it to

  • 0

I have a Background Task that uploads a file, and i want it to report the progress to a progressbar on another form. How would i go about that? I’m slightly new to C# but long time VB .net programmer.

I was messing with this code but its totally wrong.

System.Windows.Forms.Form progForm = new ProgressWindows();
Control[] ctrls = progForm.Controls.Find("fileProgress1", true);
  • 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-25T10:33:04+00:00Added an answer on May 25, 2026 at 10:33 am

    If you problem is just accessing the fileProgress1. The easiest solution is make it public in the ProgressWindow class. By default controls are private.

    enter image description here

    Then you can access the fileProgress1 control as below.

    ProgressWindows progForm = new ProgressWindows();
    //progForm.fileProgress1 
    

    However the better way is exposing a public method in the PrefressWindows class that updates the progress.

    In the ProgressWindows Class

    public void UpdateProgressBar(int percentage)
    {
        // Set the progress in the progress bar.
        fileProgress1.Percentage = percentage;
    }
    

    Call the above method as below.

    ProgressWindows progForm = new ProgressWindows();
    progForm.UpdateProgressBar(percentage);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a background task that imports files into a database. I want the
I have a background task I would like to handle. The thing is that
I have an application that, while performing a background task, shows a progress bar
I have a background worker running a long database task. i want to show
I have a background task that updates a view. That task calls -setNeedsDisplay to
Hi and thanks for looking! Background I have a computing task that requires either
In my app I have a background task (using AsyncTask) that downloads stuff from
I have a task that I want to be run 8am daily and am
I have a background agent that i would like to be executed in Mango
I have a task that takes about 10 seconds on the UI thread during

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.