Time Loop
Cannot understand why first TextBox instruction in next code does not work.
Public Class Form1
Dim Value As Double
Dim Begin As Double
Dim Eind As Double
Dim Verstreken As Double
Dim Duur As Double = 5.45
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
TextBox1.Text = "Program runs"
Begin = DateAndTime.Timer
Do While Verstreken <= Duur
Eind = DateAndTime.Timer
Verstreken = Eind - Begin
Loop
TextBox1.Text = Str(Verstreken)
End Sub
End Class
Can anyone give me an explanation pls.