I'm getting a weird malfunction when using the DateTime.AddSeconds command in a loop. Label1 is supposed to show "NewDT" before the loop starts, but for some reason it doesn't. Funny thing is when add a Messagebox right over the loop, the label shows what I want it too.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim Dt As DateTime = Now() 'It shows current datetime
Dim NewDT As DateTime = Now()
NewDT = NewDT.AddSeconds(10) 'It adds 10 seconds too the current datetime.
Label1.Text = NewDT
Do While NewDT.Second > DateTime.Now.Second 'Loops until system time matches NewDT
Loop
MsgBox("done")
End Sub