Results 1 to 2 of 2

Thread: [2008] Timer In Dot Net

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2007
    Location
    Pakistan
    Posts
    97

    Question [2008] Timer In Dot Net

    I create an application that checks an excel file on a specific path.

    if file not found then it generate message that file not found.

    Next i want that if excel file not found then system checks for excel file after

    30 Mins. (if timer is require so plz tell me about timer usage).

    thanks

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2008] Timer In Dot Net

    Just add a Timer to your form in the designer and set its Interval to the number of milliseconds in 30 minutes. Double-click it to create a Tick event handler and add code to check for your file. You can then just Start and Stop the Timer as needed. Note that once you Start it it will keep Ticking on the specified Interval until you Stop it.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width