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

timer with random number

P: 4
This program is to create a simple application to generate random number between 1 and 50.
additional: when the user click on the Start button, a random number will be displayed every 300ms.Display of random number will only start when the Start button is clicked.When the user click on the Stop button, no more number will be generated and the last number will stay on the display.

Is there anyone who can help me to do that program 's codding??
Jan 11 '08 #1
Share this Question
Share on Google+
2 Replies

Expert 5K+
P: 8,127 design time disable the timer.
2.on start button click enable the timer.
3.generate the random number in the timer event using RND() .
4.display the number on a label.
5.disable the timer on stop button click.
Jan 11 '08 #2

Expert 5K+
P: 8,434
I hope that helps, wisten. We don't like to hand out ready-made code, especially for what sounds like an educational assignment. It's better if you think it through and work it out, though we're happy to help out when you get really stuck.
Jan 11 '08 #3

Post your reply

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