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

The Archive Base Latest Questions

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

I have a timer with an interval of 1 minute and I would like

  • 0

I have a timer with an interval of 1 minute and I would like to increase a progress bar in parallel with it. I’m using Winforms and C#. How can I do this ?

Help me please

  • 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:15:19+00:00Added an answer on May 25, 2026 at 10:15 am

    Here is an example of how to use the Timer control with a progress bar. First, create a new Timer and a ProgressBar. then, start the time when the form is loaded, using this function:

    timer1.Enabled = true; // Enable the timer.
    timer1.Start();//Strart it
    timer1.Interval = 1000; // The time per tick.
    

    Then, create an event for the tick, as shown:

    timer1.Tick += new EventHandler(timer1_Tick);
    

    Create the event’s function:

    void timer1_Tick(object sender, EventArgs e)
    {
        throw new NotImplementedException();
    }
    

    After this, add code to the tick function that adds value to the progress bar, similar to this:

    progressBar1.Value++;
    

    Don’t forget to set a maximum value for the progress bar, which you can do by adding this code to the form_load function:

    progressBar1.Maximum = 10; // 10 is an arbitrary maximum value for the progress bar.
    

    Also, don’t forget to check the maximum value so your timer will stop. You can stop the timer with this code:

    timer1.Stop();
    

    Full Code:

    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
    
        private void Form1_Load(object sender, EventArgs e)
        {
            timer1.Enabled = true;
            timer1.Start();
            timer1.Interval = 1000;
            progressBar1.Maximum = 10;
            timer1.Tick += new EventHandler(timer1_Tick);
        }
    
        void timer1_Tick(object sender, EventArgs e)
        {
            if (progressBar1.Value != 10)
            {
                progressBar1.Value++;
            }
            else
            {
                timer1.Stop();
            }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a time series at a 1 minute interval. I would like to
How can i have timer which runs for every 5 secs continously. below is
I have a timer class..This timer will be started from various portions of my
I have an events based table that I would like to produce a query,
I am aware that System.Threading.Timer exists, but I already have a Thread. This thread
I have stock data at the tick level and would like to create a
I have a analog clock and a digital clock display. However, I would like
I have implemented a DispatcherTimer with databinding which would act like a stopwatch or
Our customer would like to know who is online and currently using the custom
I'm not sure if this is possible using regular hosting plans like those from

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.