I am trying to get the sum of the two time to come up right when added. For example, when i input 07 24 36 into their appropriate textboxes and then add it to 00 36 24 and then I would like for the out come to be 08 01 00 instead of 07 60 60.
Here's my code what what i have done so far:
CODE
Private Sub CalculateButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CalculateButton.Click
Dim Start As Integer
Dim Approx As Integer
If ScratchHrBox.Text = "" And ScratchMinBox.Text = "" And ScratchSecBox.Text = "" Then
MsgBox("You must put in a scratch time")
ElseIf ApproxHrBox.Text = "" And ApproxMinBox.Text = "" And ApproxSecBox.Text = "" Then
MsgBox("You must put in an approximate finished time")
Else
Start = ScratchHrBox.Text & ScratchMinBox.Text & ScratchSecBox.Text
Approx = ApproxHrBox.Text & ApproxMinBox.Text & ApproxSecBox.Text
ApproxTimeLabel.Text = Format((Start + Approx), "00:00:00")
End If
End Sub
Any help would be great. Thanks.