My code is below. Every time i debug it, the labels I put in show up as 'Label 1' and 'Label 2' and then switch to the correct date and time as I coded it. Is there a way that I can make the date and time show up right away instead of showing the 'Label 1' and 'Label 2' first? It's only showing up for a second.
Private Sub Timer1_Tick() Handles Timer1.Tick
Label1.Text = TimeOfDay
Label2.Text = System.DateTime.Now.ToString("MM/d/yyy")
End Sub
End Class
Aucun commentaire:
Enregistrer un commentaire