Solved

Visual Studio 2005 Windows application

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

706 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

15 Experts available now in Live!

Get 1:1 Help Now