Simple payroll program in vb11/15/2022 ![]() ![]() Private Sub btnExit_Click(sender As Object, e As EventArgs) Handles btnExit.Click NetPay = txtGrossPay.Text - txtFederalTax.Text - txtStateTax.Text - txtMedicareTax.Text ![]() MedicareTax = medicare_tax_rate * txtGrossPay.Text StateTax = state_tax_rate * txtGrossPay.Text ![]() GrossPay = txtHoursWorked.Text * txtPayRate.TextįederalTax = federal_tax_rate * txtGrossPay.Text Private Sub btnCalculate_Click(sender As Object, e As EventArgs) Handles btnCalculate.Click I've tried using variables instead of the txtbox.text Public Class PayrollĬonst medicare_tax_rate As Decimal = 0.01ĭim GrossPay = ("C")ĭim FederalTax.ToString("C") = txtFederalTax.textĭim StateTax.tostring("C") = txtStateTax.textĭim MedicareTax.tostring("C") = txtMedicareTax.textĭim NetPay.tostring("C") = txtNetPay.text ![]() I've got it so far but im having trouble formatting currency.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |