By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,949 Members | 921 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,949 IT Pros & Developers. It's quick & easy.

VB 2010 Repeat (need help)

P: 1
Hello everyone im newbie,

I have a question about vb2010.

I have a few timers and a few buttons. One button start, one button stop the program.
My timer works with this way:

Expand|Select|Wrap|Line Numbers
  1. Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
  2.         SendKeys.Send("{1}")
  3.     End Sub
  4.     Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick
  5.         SendKeys.Send("{2}")
  6.     End Sub
Its mean if i click button 1, its click "1" with 2050 interval on my keyboard. and the second timer is click "2" with 2090 interval.
But if i didnt stop the program its being like lately. everytime i lose like 40 interval. Everytime its click the "1" 40 interval lately.
Can you recommend me a few code for repeat ? Its like the timers will stop automatically after 2090 interval, and will start automatically when its stop.
Feb 14 '15 #1
Share this Question
Share on Google+
1 Reply


P: 4
Dear Noober,
You will have to be more descriptive in your asking.If you upload the .vb file (minus the non essential codes) it will be helpfull to answer.I can reprocess that .vb file at my end and achieve what you want.The file should have controls that will explain your problem.Otherwise answers also will be vague.It will become a vicious circle.
regards
Venkatraman
Mar 22 '15 #2

Post your reply

Sign in to post your reply or Sign up for a free account.