Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Visual Basic
Expertise: Beginner
Oct 1, 1996

Creating Delays

Question:
Can you suggest ways to delay sending keystrokes to the external application? I've tried inserting 'For-Next' loops of different durations but without success.

Answer:
Try a timer control. That is about the only reliable way to time tasks in Visual Basic. There are a couple of API functions, but the Timer Control is much easier. You can set the interval through code, and turn it off when you do not need it any more.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date