DateTimePicker counter

Reply

Join Date: Apr 2008
Posts: 14
Reputation: VisActualyBasic is an unknown quantity at this point 
Solved Threads: 0
VisActualyBasic VisActualyBasic is offline Offline
Newbie Poster

DateTimePicker counter

 
0
  #1
Apr 19th, 2008
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.
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 2,641
Reputation: Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light Jx_Man is a glorious beacon of light 
Solved Threads: 245
Jx_Man's Avatar
Jx_Man Jx_Man is offline Offline
Posting Maven

Re: DateTimePicker counter

 
0
  #2
Apr 19th, 2008
Post in vb.net Section, this for vb4/5/6 section.
Thanks friend
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 14
Reputation: VisActualyBasic is an unknown quantity at this point 
Solved Threads: 0
VisActualyBasic VisActualyBasic is offline Offline
Newbie Poster

Re: DateTimePicker counter

 
0
  #3
Apr 19th, 2008
Thks,
Will do
GaGa
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC