Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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,

  • *Experts*
Posted

Well to start and stop a timer, you can (surprisingly enough) use

the timer's Stop and Start methods.

"Being grown up isn't half as fun as growing up

These are the best days of our lives"

-The Ataris, In This Diary

Posted
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.

Dodge

Grab Life By The Horns

Posted
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.
Posted
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.

Dodge

Grab Life By The Horns

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...