Skip to main content

Write a Vb.net program to design following screen, accept the details from the user. Clicking on Submit button Net Salary should be calculated and displayed into the TextBox. Display the MessageBox informing the Name and Net Salary of employee.

· One min read
Kaustubh Kulkarni
file.vb
PublicClass Form1
PrivateSub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
txtNetSal.Text = CInt(txtBasic.Text) + CInt(txtDA.Text) +
CInt(txtHRA.Text) + CInt(txtMA.Text) + CInt(txtPF.Text) - CInt(txtPT.Text) -
CInt(txtIT.Text)
MsgBox(txtName.Text & txtNetSal.Text)
EndSub
EndClass