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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T02:40:08+00:00 2026-05-21T02:40:08+00:00

I am attempting to make a program which updates the GUI with new data

  • 0

I am attempting to make a program which updates the GUI with new data every 30 seconds. I currently have it so you can click a button to update the data values, but I want the finished product to automatically update. I am sure that it is a simple addition, perhaps with the addition of the backgroundWorker class? Or have something generate an event, which would be handled the same way the buttonClicked action listener is working. What would be the best way to go about this?

  • 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-21T02:40:09+00:00Added an answer on May 21, 2026 at 2:40 am

    You have to consider how long will takes fetching the data from the real DataSource. This because if you use a Winform Timer, during the timer event processing the UI will not respond to other user events, so if this is a long process the user experience became poor. Using a background worker thread would be a good strategy, but in this case you have to update the UI via Control.Invoke, or by using the PreogressChanged event. In my opinion, the second option (BackgroundWorker) is better.

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

Sidebar

Related Questions

I am attempting to make a program in C which presents a GUI and
I am attempting to make a program that will pull data such as OS,
I am attempting to make an updater program, that when updates it writes a
I am attempting to learn C and I have written a small program which
My Goal I am attempting to make a Java program in which a user
I have a game I am attempting to program but the initial data entry
I am attempting to make alarm program. So far I have written an activity
I have created a C# Windows Forms application which I've attempted to make as
I am attempting to make a program that will input numbers into an array
I'm attempting to make a generic routine within my program that will instantiate objects

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.