Solved

Visual Studio 2005 Windows application

Posted on 2008-10-01
1
314 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
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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Filename to be appended with DateTimeof Download 3 55
Server Error 11 58
VB: Convert 2 dates to specific format 24 48
.NET 2008 VB and C# 6 27
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…
This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
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…

785 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