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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T00:03:47+00:00 2026-05-14T00:03:47+00:00

A timer is being used in my C# application to determine if an expected

  • 0

A timer is being used in my C# application to determine if an expected event has occured in a timely fassion. This is how I am currently attempting to do this:

// At some point in the application where the triggering event has just occured.
   // Now, the expected event should happen within the next second.
   timeout = false;
   timer1.Interval = 1000; // Set timeout for 1 second.
   timer1.Start();

timer1_Tick(object sender, EventArgs e)
{
   timeout = true;
}

// At some point in the application where the expected event has occured.
   timer1.Stop();

// At a later point in the application where the timeout is
// checked, before procedding.
   if ( timeout )
   {
      // Do something.
   }

Now, what I am wondering is when the Start() or Stop() member methods are called, does that cause the timer count to reset? I am using Microsoft Visual C# 2008 Express Edition. Thanks.

  • 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-14T00:03:47+00:00Added an answer on May 14, 2026 at 12:03 am

    When you call Stop() it effectively resets the timer back to 0, from the linked page:

    Calling Start after you have disabled
    a Timer by calling Stop will cause
    the Timer to restart the interrupted
    interval. If your Timer is set for a
    5000-millisecond interval, and you
    call Stop at around 3000 milliseconds,
    calling Start will cause the Timer
    to wait 5000 milliseconds before
    raising the Tick event.

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

Sidebar

Related Questions

My C# application is such that a background worker is being used to wait
Here is the deal. Our application is working and is being used by writers
All, I have to redesign an existing logging system being used in web application.
I have an application that writes information to file. This information is used post-execution
Application has an auxiliary thread. This thread is not meant to run all the
I have a section of code that is being used to determine if a
I want to record what application is being used by the user at every
I'm putting some files in /tmp on a web server that are being used
Hey I'm trying to learn some of the recommendation algorithms that's being used in
I have used Observer Pattern for my application. I have a subject which has

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.