D doc7i9 Member Joined Jan 27, 2011 Messages 8 Programming Experience Beginner Feb 16, 2011 #1 how to show the current time in a label that ticks the time moves the same time as the system time as simple as possible thx i tried doing this but the code i used was way too long
how to show the current time in a label that ticks the time moves the same time as the system time as simple as possible thx i tried doing this but the code i used was way too long
JohnH VB.NET Forum Moderator Staff member Joined Dec 17, 2005 Messages 15,818 Location Norway Programming Experience 10+ Feb 16, 2011 #2 Use a Timer to generate reoccuring events, in the Tick event handler do this: VB.NET: Me.TimeLabel.Text = Date.Now.ToShortTimeString Upvote 0 Downvote
Use a Timer to generate reoccuring events, in the Tick event handler do this: VB.NET: Me.TimeLabel.Text = Date.Now.ToShortTimeString