I want my program to do a search on a database every few minutes to check for something specific and if it's found, then to show a certain form. I have 8 forms in my project and I want the search to be done while any of them is open. How do I program a timer to do that every few minutes?
The first time I want it done is 10 sec after the program is opened, where would I put the timer
Place the Timer in any of the Form, and set its "Interval" 10000 (for 10 Seconds)
Write the Checking code in Timer1_Timer Event, Make the Event as Public and u can access it from every where.
If u have a MDI Form, then forst place a Frame Control and place the timer on that frame.
Veena, I think he meant not Exactly a timer event. What he wants is when any of his form is activated he wants a search in the database for any change that has happened and report it in another form?. You better get the details. I am confident that he knows the timer event.