Skip to main content

Visual Basic Payroll System

In this tutorial we will teach you how to create a Payroll System written in Visual Basic. This simple application creates a automatic calculation of salary using this payroll system. The application calculates the Rate, Hour per day, and deducts the Phil-Health, SSS, Monthly wages, and etc. The application works by putting a value from the Rate per hour, Hour per day, and Number of days work. See Example Code

Sample Code

This Code is for the process of salary and deduction by one input using the compute button and calls the textbox number by their name.
  1. Dim ans As Integer
  2. Dim deduc As Integer
  3. Dim tax As Integer
  4. Dim phil As Integer
  5. Dim s As Integer
  6. Dim net As Integer
  8. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  9. ans = ((TextBox2.Text * TextBox3.Text) * (TextBox1.Text))
  10. TextBox4.Text = ans
  11. TextBox9.Text = ans
  13. tax = ans * 0.15
  14. TextBox5.Text = tax
  15. phil = ans * 0.5
  16. TextBox6.Text = phil
  17. s = ans * 0.11
  18. TextBox7.Text = s
  19. deduc = tax + phil + s
  20. TextBox8.Text = deduc
  21. TextBox10.Text = deduc
  23. net = TextBox9.Text - TextBox10.Text
  24. TextBox11.Text = net
  25. End Sub
result Hope that you learn from this tutorial and don't forget to Like & Share this project and the website. Enjoy Coding...!


Submitted byAnonymous (not verified)on Fri, 06/29/2018 - 12:49

hi sir your work is very impress very good work Good job

Add new comment