Sythe.Org Forums     Register     FAQ     Members List     Calendar     Mark Forums Read    
 
Sythe.Org Forums  
   Runescape Gold

Sythe.org — A Virtual Goods Trading Hub

Make real cash! buying and selling in-game items.

We have a no-scam policy.

You can make thousands playing your favourite games here at Sythe.org.

Just sign up an account and follow the rules!


Take me to

Runescape Markets

Other Game Markets

Support Center

Register an Account

Close
stopwatch / countdown timer
Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 05-07-2010, 12:31 AM
mama luigi's Avatar
Newcomer
 
Join Date: May 2010
Posts: 11
Default stopwatch / countdown timer

how would you make a stopwatch or a countdown timer, I can't seem to be able to figure out the code.

Thanks in advance.
Reply With Quote
  #2  
Old 05-08-2010, 01:24 PM
Member
 
Join Date: Mar 2009
Posts: 81
Default Re: stopwatch / countdown timer

You would use a label and a timer.
Declare a variable with an integer data type and make the variable hold the number you want it to start counting down from.
Then in the tick event you would do:

Variable = Variable - 1
[Label].Text = Variable.ToString
Reply With Quote
  #3  
Old 05-08-2010, 01:31 PM
Member
 
Join Date: Mar 2009
Posts: 81
Default Re: stopwatch / countdown timer

Code:
Dim intCountDown As Integer = 200   'The number you want to count down from here

Private Sub tmrCountDown_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tmrCountDown.Tick

intCountDown = intCountDown - 1   'Minus 1 off the varable

lblCountDown.Text = intCountDown.ToString   'Display/update the variable in a label

End Sub

If you didn't understand what I said in my previous post then just copy the code I did above and just drag a label onto your form and call it 'lblCountDown'. Then drag a timer onto your form and call it 'tmrCountDown'.
Reply With Quote
Reply



Cheap RS Gold Store  Runescape Gold

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

All times are GMT +1. The time now is 03:33 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.6.1