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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T20:58:59+00:00 2026-06-16T20:58:59+00:00

I am working on Windows Forms application. I have a windows form in which

  • 0

I am working on Windows Forms application. I have a windows form in which a label is set visible to false by default. I want to set property visible to true for 10 seconds and then after to false. I have dragged the timer control and set the interval to 1000 miliseconds, that is, 1 second, and I have written the code in form load event:

    timer1.Start();
    if (timer1.Interval == 5000)
    {            
        timer1.Stop();
    }

But it is not setting the label visible to false. Why?

In which event do I have to fire this code so that when the timer starts and when will it be 5 seconds and then the label will be set to false? Is that possible in C#?

  • 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-16T20:59:00+00:00Added an answer on June 16, 2026 at 8:59 pm

    Check the below code.

        private void Form1_Load(object sender, EventArgs e)
        {
            timer1.Interval = 10000;
            timer1.Tick += new System.EventHandler(this.timer1_Tick);
            label1.Visible = true;
            timer1.Start();
        }
    
    
        private void timer1_Tick(object sender, EventArgs e)
        {
            timer1.Stop(); //If timer is not stopped, timer1_Tick event will be called for every 10 seconds
            label1.Visible = false;
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a .NET Windows Forms application. I have an event handler procedure
I am working on a Windows Forms application in C#/.Net. I want to use
I'm working on a Windows Forms application, which of course involves databinding to objects.
Im using c# .net windows form application. I have created a database which has
Currently I am working with: C# Windows forms application I currently have a problem
I am working in C# Windows Forms Application I want to make shadow of
I have a windows form application which is writing bunch of stuff in the
I have a Windows::Forms application and I want to add a custom control to
I'm working on a windows forms application (.NET 4.0). My form contains a 'Fast
I am working on a Windows Forms application. I have two tab2 in my

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.