windows form - reload after x minutes

Posted on 2009-04-21
Medium Priority
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

ID: 24202067

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

LVL 53

Accepted Solution

Dhaest earned 1500 total points
ID: 24202069
You can use a timer.
An easy example can be found here:
Use Timer to refresh Label
LVL 83

Expert Comment

ID: 24204972
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

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Integration Management Part 2
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses
Course of the Month15 days, 8 hours left to enroll

850 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