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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T21:37:23+00:00 2026-06-18T21:37:23+00:00

How can I do this in a WinForms app? I’ve tried it with a

  • 0

How can I do this in a WinForms app? I’ve tried it with a System.Windows.Forms.Timer, but when i minimize the application, I can’t maximize it again. It lags up the app. I’m using the .Interval property as 500.

EDIT: Code:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            System.Windows.Forms.Timer Loop = new System.Windows.Forms.Timer();
            Loop.Interval = 500;
            Loop.Tick += new EventHandler(UpdateUI);
            Loop.Start();
        }

        void UpdateUI(object sender, EventArgs e)
        {
            //ADD TO LIST ON USER INTERFACE
        }
    }
}
  • 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-18T21:37:24+00:00Added an answer on June 18, 2026 at 9:37 pm

    The Timer class specifies Interval as milliseconds. So your value of 500 indicates an interval of half a second. Specify 50 instead.

    Also, you are not guaranteed to have the timer fire exactly each 50 milliseconds. Only somewhere around 50 milliseconds.

    You should keep a reference to your timer object.

    public partial class Form1 : Form
    {
        Timer loop;
    
        public Form1()
        {
            InitializeComponent();
            this.loop = new System.Windows.Forms.Timer();
            loop.Interval = 50;
            loop.Tick += new EventHandler(UpdateUI);
            loop.Start();
        }
    
        void UpdateUI(object sender, EventArgs e)
        {
            //ADD TO LIST ON USER INTERFACE
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This application has a WCF web service that is called by a WinForms app.
I'm writing an application that can be started either as a standard WinForms app
I've got a ComboBox on a winforms app with this code: comboBox1.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
When designing a WinForms app in visual studio, you can choose to populate a
Currently I have a Winforms app which relies on transpareny effects. However this is
I have a winforms app but I would like to introduce a WPF user
I am running this code in a seperate thread on my C# Winforms app
Ok, I'm making a very basic vb.net winforms app, essentially you can drag files
Is this possible to check in assembly what client (winforms app or asp.net page)
Winforms App. .Net 3.5. I need to set the focus from my C# application

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.