Solved

Visual Studio 2005 Windows application

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

Independent Software Vendors: 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

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

728 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