windows form - reload after x minutes

Posted on 2009-04-21
Last Modified: 2013-12-17

I have created a windows form in visual studio 2008. I have various charts created using mschart which get their data from an ever changing sql sp.

Is there a way to allow a user to select the number of minutes in a drop down list and have the form reload/refresh on the selected amount of time the user selects??

Hope that makes sense?

Question by:leap29
    LVL 22

    Expert Comment


    You could use a Timer object and update the form after the timer elapses.

    LVL 53

    Accepted Solution

    You can use a timer.
    An easy example can be found here:
    Use Timer to refresh Label
    LVL 83

    Expert Comment

    Use a sub to initialize and display the chart. Call that sub in the form's load event. Then using a timer, call the sub again whenever the timer elapses.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    Normally the drop down box control found in the .Net framework tools is able to select just one data and value at a time, which is displayed on the text area.   But what if you want to have multiple values to be selected in the drop down box? As …
    Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    729 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