VB SIX COUNTDOWN
#1
Posted 08 January 2008 - 08:39 PM
#2
Posted 09 January 2008 - 12:52 PM
#3
Posted 09 January 2008 - 06:08 PM
#4
Posted 09 January 2008 - 11:23 PM
http://www.daniweb.c...ead.php?t=17352
http://www.vbdotnetf...ead.php?p=20867
#5
Posted 10 January 2008 - 11:22 PM
Here is something i was messing with.
Private Sub Command1_Click()
Dim strMsg As String
strMsg = Date
strMsg = strMsg & "is the last day of School!!"
Text1.Text = strMsg
End Sub
Private Sub Timer1_Timer()
Label1.Caption = Time
End Sub
I need to have like, days remaining.
#6
Posted 11 January 2008 - 04:24 AM
?
#7
Posted 11 January 2008 - 10:00 PM
#8
Posted 11 January 2008 - 10:03 PM
#9
Posted 12 January 2008 - 04:14 AM
Also to edit Assembly Info if you're in .net you can open AssemblyInfo.cs file on Properties where your project lies, or right click the project, properties, application, assembly information button.
#10
Posted 12 January 2008 - 11:39 AM
Text Box that will say : X days remaining till summer
Command button to say the above..
So basically, i need it to do the difference of Todays Date, and June 14th, and say the number of days.
Heres my code
Private Sub Command1_Click()
Dim strMsg As String
strMsg = intDaysRemaining = Day(dateVariable - Now, True)
strMsg = strMsg & "days left of school"
Text1.Text = strMsg
End Sub
Now it gives me the erro on the word "Day" saying wrong number of aruments, or invalid property/
Edited by sumguy, 12 January 2008 - 11:42 AM.
#11
Posted 14 January 2008 - 05:54 AM
strMsg = intDaysRemaining = Day(dateVariable - Now, True)
You cannot equal two times. = means that you are giving the value of the right expression to the variable in the left. Only one per line please. :-)
Also i think Day() can accept only a pass parameter as Int Day(Date). I have no idea what Int Day(Date,Bollean) overload does.
Ok, if you're really desperate and THAT lazy here's something fast that might help you:
Dim dateVariable As Date
dateVariable = #6/14/08#
strMsg = Day(dateVariable - Now) & "days left of school"
Edited by sandokas, 14 January 2008 - 06:02 AM.
#12
Posted 14 January 2008 - 05:51 PM
#13
Posted 15 January 2008 - 02:20 PM
Thanks for your help so far, and also haha, the thing you told me to try, with the #6/14/2008# ...i dont think it works, because it tells me that there is 30 days left, but in actuality there is what, 5 months ahah..
Oh i see.. Just replace Day by CInt and you're set to go!
Dim dateVariable As Date
dateVariable = #6/14/08#
strMsg = CInt(dateVariable - Now) & "days left of school"
#14
Posted 15 January 2008 - 06:05 PM
Similar Topics
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users