CODE
Private Sub calcButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles calcButton.Click
Dim taxExemption As Double
Dim typeOfPay As String
Dim grossPay As Double
Dim federalTax As Double
Dim stateTax As Double
Dim socialSecTax As Double
Dim netPay As Double
Dim deduction As Double
'Grand Total variables
Dim grandTotalGrossPay As Double
Dim grandTotalFederalTax As Double
Dim grandTotalStateTax As Double
Dim grandTotalSocialSecTax As Double
Dim grandTotalNetPay As Double
Dim numberOfEmployee As Integer
Dim isConverted As Boolean
' ==>I would like to check the nameTextBox if letters are entered
'Tax exemption check
isConverted = Double.TryParse(taxExemptionTextBox.Text, taxExemption)
If isConverted = True Then
'type of pay selection check
'==> On the form I have name text box, tax exemption text box and type of pay combo box. I would like the user to enter this information and then loop for more employess with InputBox. till the user hit cancel. Can someone show me just the loop , the do... loop statement
Else
MessageBox.Show("Please re-enter tax exemption as number.", "Payroll processing program", _
MessageBoxButtons.OK, MessageBoxIcon.Exclamation)
End If
End Sub