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 the date thats changed to stay when the form is opened next time
Eg: dtp2 is set to 19.04.2008, I clicked 4 times and have in dtp2 23.04.2008
so when I open the form dtp2 will show me last selected date (23.04.2008)
I have some calculation to perform each day. How can I keep track of last 7 days calculations.
Eg: On 19.04.08 I calculated sum to 124, next day 23, .......
I need total of sum for last 7 days, as dtp2 is updated on daily base.
Tks GaGa
PS
Who ever gives me best answer I will borrow him my pensioners card for 2 days.