Results 1 to 2 of 2

Thread: A few questions

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2009
    Posts
    61

    A few questions

    1. How can I make something like you press a button, and something happens until the time is the time in the textbox? For example, it keeps on doing nothing and when the the time is the time in the textbox (for example - 15:08:07) and then it presses some keys.

    2. How can I control timer? Is it in milliseconds or something?

    Thank you very much in advance.

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

    Re: A few questions

    1. Start a Timer and, in the Tick event handler, check the current time (Date.Now). If the current time is equal to or greater than the target time, stop the Timer.

    2. http://msdn.microsoft.com/en-us/libr...rms.timer.aspx

    Read that first, then follow the link to read about all the members, i.e. properties, methods and events.
    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