Hello, newbie questions here.
I'm using VB 2005 Express.
I want to return the current time in Label2.
Current code:
VB Code:
Private Sub Label2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label2.Click Label2.Text = Now.ToString("HH:MM")
The problem is I have to click the label at run-time on the form in order for the time to show.
How can set things up so the Time displays automatically when the form loads without me having to click the label first?
Also, how can I display GMT or Universal Time instead of system time?
Thanks for helping the newbie!




Reply With Quote