Morning...
Am working on a simple billing system and a looking for a code that can help calculate the difference in time between sessions..(am using VB.Net )
This is what is happening:
l have a :
combobox named combobox1
textbox named txttotalamount
btnStart
Timer 1
btnEnd
Under btnStart l have the following code:
and under btnEnd l have the following code:
What l want is that l should be able to use the system time..if the system time is 12:01 that should be my start time and my end time should also be taken from the system..the counting should be in minutes..please help me
Am working on a simple billing system and a looking for a code that can help calculate the difference in time between sessions..(am using VB.Net )
This is what is happening:
l have a :
combobox named combobox1
textbox named txttotalamount
btnStart
Timer 1
btnEnd
Under btnStart l have the following code:
Code:
Me.Timer1.Start()
Me.Timer1.Start()
Me.Timer1.Enabled = True
Code:
Me.Timer1.Stop()
Me.txtTotaltime.Text = m_seconds.ToString()
Dim number1 As Integer
Dim number2 As Integer
Dim answer As Integer
number1 = txtTotaltime.Text
number2 = ComboBox1.Items.Count
answer = number1 * number2
MsgBox(answer)
Comment