Private
Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.ClickDim mstatus As Char
Dim tax As Doublemstatus = TextBox1.Text
'tax = TextBox2.Text If (mstatus = "1") ThenMsgBox(" Your are Single")
tax = tax + 0.05
ElseIf (mstatus = "2") ThenMsgBox("You are Married")
ElseIf (mstatus = "3") ThenMsgBox(" Yor are Head of HouseHold")
tax = tax - 0.05
ElseIf (mstatus = "s") Or (mstatus = "S") ThenMsgBox("Your are Single")
tax = tax + 0.05
ElseIf (mstatus = "m") Or (mstatus = "M") ThenMsgBox("You are Married")
ElseIf (mstatus = "h") Or (mstatus = "H") ThenMsgBox(" Yor are Head of HouseHold")
tax = tax - 0.05
ElseMsgBox("Error in entry")
End IfTextBox3.Text = tax
End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.ClickTextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
End SubEnd
Class