| | |
DateTimePicker counter
![]() |
•
•
Join Date: Apr 2008
Posts: 14
Reputation:
Solved Threads: 0
Hi everybody,
I have following code:
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.
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 Classdtp2 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.
Post in vb.net Section, this for vb4/5/6 section.
Thanks friend
Thanks friend
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
So, Please do something before post your thread.
* PM Asking will be ignored *
![]() |
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: How to Append,Save, Retrieve and Delete an OLEObject field in Access
- Next Thread: save, edit, delete vb 6 using ms access
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age application basic beginner birth bmp calculator cd cells.find click client code college component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report save search sendbyte sites sort sql sql2008 sqlserver subroutine tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows






