W
Waffles
Guest
Clock
Objective;
Create a form that show's the current Time.
Specification;
Set up a form as a clock with a textbox.
Rename the Form1.vb to frmClock. Set the title to "Clock", the BackColor to system Desktop, the ForeColor system ForeColor and the Font to Arial 16.
Set the textbox name to txtTime.
Add a timer and rename it to tmrTimer, set its interval to 1000, and Enabled to "True".
Double click the tmrTimer_Tick code.
Enter this code.
Operation;
CODE
Code:
Dim timTime As Date timTime = My.Computer.Clock.GmtTime Me.txtTime.Text = timTimer.Hour & ":" & timTime.Minute & ":" & timTime.Second
Wola, Then Debug
I hoped this helped you in learning VB.



