Solved

Visual Studio 2005 Windows application

Posted on 2008-10-01
1
328 Views
Last Modified: 2012-05-05
I wrote the windows application that accesses the database, runs stored procedure and displays the dataset via DataGridView.  The user asks the data is to be refreshed every 15 minutes.  
I need help to code this.  The way the application works now is it starts and displays the form with a datagridview.
0
Comment
Question by:Aquarus
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 7

Accepted Solution

by:
joesthebighmoe earned 500 total points
ID: 22617499
Add timer control to form (in ToolBox/Components) on the left in the IDE.

Set the timer control's enabled property to true.
Set the timer control's interval property to 900,000 (1000 ticks is a second, so 900K is 15 minutes)
Double click the timer control which will take you to the event that fires every time the timer "ticks".
In this event handler, call the code that refreshes the DataGridView
 private void timer1_Tick(object sender, EventArgs e)
    {
      RefreshMyDataGridView();
    }

Open in new window

0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

697 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