- This topic has 21 replies, 5 voices, and was last updated 16 years ago by BattleStar-Galactica.
-
AuthorPosts
-
May 14, 2007 at 10:31 pm #187913BattleStar-GalacticaMember
LOL 😯 😯 😯 😯 😯
May 14, 2007 at 10:35 pm #187912BattleStar-GalacticaMembersee it now baby
May 15, 2007 at 12:49 pm #187911autopilotMember@method wrote:
autopilot i wish i had visual basic 2005 edtion. So i don’t know how to modify it for vb6!!!
Get VB2005 Express free from Microsoft. Download it here!
autopilot
May 15, 2007 at 3:02 pm #187910BattleStar-GalacticaMemberone day vb6 programmers have to move to vbnet becuz microsoft won’t support vb6. BTW autopilot why you do a lot of thing for nothing, the formula shown is so simple and can be used in vbnet or c#
example hour.ToString(“00”) ect
May 15, 2007 at 8:38 pm #187909autopilotMember@BattleStar-Galactica wrote:
BTW autopilot why you do a lot of thing for nothing, the formula shown is so simple and can be used in vbnet or c#
example hour.ToString(“00”) ect
Well… the reason is simple… didn’t know i could do it that way 🙂 Thanks for the tip
autopilot
What my timer became:
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
'increase sec by 1
sec += 1
'process sec
If sec > 59 Then
sec = 0
min += 1
s = "00"
Else
s = sec.ToString("00")
End If
'process min
If min > 59 Then
min = 0
hour += 1
m = "00"
Else
m = min.ToString("00")
End If
'process hour
h = hour.ToString("00")
'update the listview
ListView1.Items.Item(0).Text = String.Format("{0}:{1}:{2}", h, m, s)
End SubMay 17, 2007 at 12:49 am #187908methodMemberBatler thank you for the project. But timer doesn’t go beyond one min!! In other word it doesn’t show mins and hours!!
May 17, 2007 at 2:35 am #187907BattleStar-GalacticaMemberSorry for that, I didn’t run the program, just do copy and past what I posted on here, now I run it and see an error of logic
just redownload the project here, it’s will ok
-
AuthorPosts
Related
- You must be logged in to reply to this topic.