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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T17:07:17+00:00 2026-06-08T17:07:17+00:00

My problem is very simple but I can’t figure it out, so I need

  • 0

My problem is very simple but I can’t figure it out, so I need your help.

The problem is that I have a button and a label in a form, I simply want to click the button and see the label countdown from 10 to 0 and after that happens the form closes, that simple, can someone help me with this?

BTW, my real app is a form that shows video in real time from my webcam and the idea is to click the button, see the count down and when it finishes the appp saves the current frame as an image.

Thanks in advice!

  • 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-06-08T17:07:20+00:00Added an answer on June 8, 2026 at 5:07 pm

    Using WindowsFormsApplication u can do it like this:

    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            timer1.Enabled = false; // Wait for start
            timer1.Interval = 1000; // Second
            i = 10; // Set CountDown Maximum
            label1.Text = "CountDown: " + i; // Show
            button1.Text = "Start";
        }
    
        public int i;
    
        private void button1_Click(object sender, EventArgs e)
        {
            // Switch Timer On/Off
            if (timer1.Enabled == true)
            { timer1.Enabled = false; button1.Text = "Start"; }
            else if (timer1.Enabled == false)
            { timer1.Enabled = true; button1.Text = "Stop"; }
        }
    
        private void timer1_Tick(object sender, EventArgs e)
        {
            if (i > 0)
            {
                i = i - 1;
                label1.Text = "CountDown: " + i;
            }
            else 
            { timer1.Enabled = false; button1.Text = "Start"; }
        }
    }
    

    You only need a label, a button and a timer.

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

Sidebar

Related Questions

I have a very simple problem, but I just can't figure it out. My
This problem is very simple, but I just can't figure it out added to
very simple problem here... but I can't work it out. I have a simple
I have a very simple problem, but I can't seem to solve it. I
I've a very simple question but can't figure it out by myself. i've the
I am new to Perl and I have a problem that's very simple but
My problem is very simple, but implementation can be hard! I want that my
I have what I'm sure is a very simple problem but I can't work
I have a very simple problem and a solution that will work, but I'm
I have a very simple problem but cannot find a nice solution. I have

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.