netnewb2002 Posted October 29, 2002 Posted October 29, 2002 I had a question, This is for part of a program due for a class. I know how to make regular timers, but where can I find sample code for (stop watch) Timers? So when I push start..the timer will start, and when I push stop the timer will stop. I looked through both of my text books for sample code on this and couldn't find any. Unless it is labeled something other than timer/objects/modules. Text books I use are: VB.NET by Example, and Coding Techniques for Microsoft Visual Basic.NET. Any help would be appreciated, or perhaps a sample code of what I should do first, and maybe I can figure the rest out from there. Thanks, Quote
*Experts* Bucky Posted October 29, 2002 *Experts* Posted October 29, 2002 Well to start and stop a timer, you can (surprisingly enough) use the timer's Stop and Start methods. Quote "Being grown up isn't half as fun as growing up These are the best days of our lives" -The Ataris, In This Diary
Dodgeram01 Posted October 29, 2002 Posted October 29, 2002 And one of the first samples in "Coding Techniques for Visual Basic .NET" is a clock program! So between the two, you should be able to figure it out. Quote Dodge Grab Life By The Horns
netnewb2002 Posted October 30, 2002 Author Posted October 30, 2002 Working with the start/stop at moment. I did do the first example for the coding techniques..all it did is put current date and time inside a label on a form, which I already knew how to do. Quote
Dodgeram01 Posted November 2, 2002 Posted November 2, 2002 Look a little farther in that book. The one I'm thinking of was labeled something like "Your First Real Program." I read it awhile ago though, so I may be wrong. Quote Dodge Grab Life By The Horns
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.