Hi everybody,
I have following code:
Public Class Form1
Private Sub btn1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn1.Click
Dim dayChange As Date = dtp2.Value
Dim answer As Date
answer = dayChange.AddDays(1)
dtp2.Value = answer
End Sub
End Class
Working : each time I click btn1 datetimepicker changes to date +1(adds one day)
dtp2 is my DateTimePicker
Problem: I need number or sum or counter of how many times I have clicked btn1 (I changed date).
Eg: dtp2 is set to 19.04.2008, I clicked 4 times and have in dtp2 23.04.2008
some kind of counter that will keep track of how many times i changed time.
Tks GaGa
PS
Who ever gives me best answer I will borrow him my pensioners card for 2 days.