Windows application .net c# thread structure

Posted on 2011-10-18
Last Modified: 2012-05-12

Building a new application as a windows form using .net c#.

Most of my code has been .net c# website building so windows forms are a mystery, especially threads!

Application checks a table for new records being added every 5 minutes and if it finds a new record it does find a new records it runs a process and updates the form interface.

Would like the interface to be updated every 5 minutes to show application still working even if no new records.

Hope I have made that clear.

Before start I wonder if somebody could help with structure of code in the windows form


Question by:stephenwilde
    LVL 28

    Accepted Solution

    What you're looking for is the BackgroundWorker class (

    The "backgroundWorker1_DoWork" method will check the database, call a method to update the form, and then sleep for 5 minutes.

    Author Closing Comment

    thank you -sorry for delay in replying to your speedy response

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    "Disruption" is the most feared word for C-level executives these days. They agonize over their industry being disturbed by another player - most likely by startups.
    Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.

    731 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now