G
Guest
I want to know the number of days.
Here is my code:
Dim dt1 = DateTimePicker1.Value()
Dim dt2 = DateTimePicker2.Value()
TextBox1.Text + CStr(dt2.Subtract(dt1).Days)
TextBox1.Refresh
I have all the code in a Timer1.Tick event. The code works fine, but is
there other way to do this, so if someone changes the date it will show how
many days in real-time
Here is my code:
Dim dt1 = DateTimePicker1.Value()
Dim dt2 = DateTimePicker2.Value()
TextBox1.Text + CStr(dt2.Subtract(dt1).Days)
TextBox1.Refresh
I have all the code in a Timer1.Tick event. The code works fine, but is
there other way to do this, so if someone changes the date it will show how
many days in real-time