[Tutorial]Alarm Clock [VB6]
1 Timer, 3 Text Boxes, and 2 buttons
Start off by typing in the TextBoxes '0' (No quotations)
Name the two Buttons Start and Stop (for max effect, disable timer and stop)
Timer Interval is 900.
the code is:
Its fun,simple, and useable!
Remeber, THANK me if i helped.
If you want to fix it up and make a Clock with it (AKA the current time)
Add 2 More Txtboxes, and 1 more timer.
Code:
And your Done!
In a Few Days/Hours ill be releasing my Newest Program!!! so Look Forward to That
Start off by typing in the TextBoxes '0' (No quotations)
Name the two Buttons Start and Stop (for max effect, disable timer and stop)
Timer Interval is 900.
the code is:
Code:
Start: timer1.enabled = true start.enabled = false stop.enabled = true ____________________ Stop: Timer1.enabled = false start.enabled = true stop.enabled = false _____________________ Timer: seconds.text = (seconds.text) + 1 if Seconds.text = 60 then minutes.text = (minutes.text) + 1 seconds.text = "0" end if if Minutes.text = 60 then hours.text = (minutes.text) + 1 Minutess.text = "0" end if ______________________________
Remeber, THANK me if i helped.
If you want to fix it up and make a Clock with it (AKA the current time)
Add 2 More Txtboxes, and 1 more timer.
Code:
Code:
Text2.Text = Date Text1.Text = Time
In a Few Days/Hours ill be releasing my Newest Program!!! so Look Forward to That