Click here to Skip to main content
15,896,154 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionPlease Help In VB 2008 Express Edition Pin
Abidh27-May-08 0:05
Abidh27-May-08 0:05 
AnswerRe: Please Help In VB 2008 Express Edition Pin
Ashfield27-May-08 1:23
Ashfield27-May-08 1:23 
GeneralRe: Please Help In VB 2008 Express Edition Pin
Abidh27-May-08 18:51
Abidh27-May-08 18:51 
Public Class System1

Dim timerstat As Boolean = False
Dim count As TimeSpan
Dim CHours As Boolean
Dim CMins As Boolean
Dim CSecs As Boolean
Dim CMSecs As Boolean

Private Sub btnSys1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSys1.Click
If timerstat = False Then
btnSys1.Text = "Stop"
Timer1.Start()
timerstat = True

ElseIf timerstat = True Then
btnSys1.Text = "Start"
Timer1.Stop()
timerstat = False
End If
End Sub


Private Sub Timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Timer1.Tick
count = Timer1
If CSecs >= 10 Then
CMins = CMins + 1
CSecs = 0

Else
CSecs = CSecs + 1
End If
If CMins >= 60 Then
CHours = CHours + 1
CMins = 0
End If
If CHours < 10 Then CHours = "0"
If CMins < 10 Then CMins = "0"
If CSecs < 10 Then CSecs = "0"

lblTimer1.Text = count
End Sub
End Class

this what i gave the code to my program. The timer must count up as in this format hh:mm:ss as 00:34:05, 00:36:10 like this
GeneralRe: Please Help In VB 2008 Express Edition Pin
Ashfield27-May-08 23:15
Ashfield27-May-08 23:15 
GeneralRe: Please Help In VB 2008 Express Edition Pin
Abidh28-May-08 1:34
Abidh28-May-08 1:34 
GeneralRe: Please Help In VB 2008 Express Edition Pin
Ashfield28-May-08 5:03
Ashfield28-May-08 5:03 
QuestionError in Array Handling Pin
nagendrathecoder26-May-08 23:49
nagendrathecoder26-May-08 23:49 
AnswerRe: Error in Array Handling Pin
dan!sh 27-May-08 1:00
professional dan!sh 27-May-08 1:00 
AnswerRe: Error in Array Handling Pin
Chinners27-May-08 1:00
Chinners27-May-08 1:00 
AnswerRe: Error in Array Handling Pin
nagendrathecoder27-May-08 1:25
nagendrathecoder27-May-08 1:25 
QuestionProcess Time Pin
~V~26-May-08 20:36
~V~26-May-08 20:36 
AnswerRe: Process Time Pin
Ashfield26-May-08 21:14
Ashfield26-May-08 21:14 
GeneralRe: Process Time Pin
~V~26-May-08 21:35
~V~26-May-08 21:35 
GeneralRe: Process Time Pin
Mycroft Holmes26-May-08 22:24
professionalMycroft Holmes26-May-08 22:24 
GeneralRe: Process Time Pin
~V~26-May-08 22:54
~V~26-May-08 22:54 
GeneralRe: Process Time Pin
Mycroft Holmes26-May-08 23:16
professionalMycroft Holmes26-May-08 23:16 
GeneralRe: Process Time Pin
~V~26-May-08 23:30
~V~26-May-08 23:30 
GeneralRe: Process Time Pin
Ashfield26-May-08 23:37
Ashfield26-May-08 23:37 
GeneralRe: Process Time Pin
~V~26-May-08 23:51
~V~26-May-08 23:51 
QuestionTable Locking : Reposting with more details... [modified] Pin
nishkarsh_k26-May-08 20:22
nishkarsh_k26-May-08 20:22 
AnswerRe: Table Locking : Reposting with more details... Pin
darkelv26-May-08 20:56
darkelv26-May-08 20:56 
GeneralRe: Table Locking : Reposting with more details... Pin
Ashfield26-May-08 21:16
Ashfield26-May-08 21:16 
AnswerRe: Table Locking : Reposting with more details... Pin
Mycroft Holmes26-May-08 22:29
professionalMycroft Holmes26-May-08 22:29 
Questionsoap exception in creation of a site Pin
FriendlySoluations26-May-08 20:02
FriendlySoluations26-May-08 20:02 
QuestionCreating One Thread Per Cpu Pin
im_hoser26-May-08 13:34
im_hoser26-May-08 13:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.