I am a beginner with VB, I'm coming from C++. When I compile and test the program the base pay textbox changes to 0, gross pay textbox to 0 and the total deductions turns to 0.25. For the life of me I can't figure out why. My little experience with python and C++ tells me that its something simple that I overlooked. Any help would be appreciated, Thank You.
Public Class Form1 Private Sub btnExit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnExit.Click Me.Close() End Sub Private Sub btnCal_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnCal.Click Dim payRate As Decimal Dim grossPay As Decimal Dim totalDeds As Decimal = 0.25 Dim netPay As Decimal Dim hoursWorked As Integer grossPay = hoursWorked * payRate netPay = grossPay - grossPay * totalDeds textboxBasePay.Text = payRate lblGrossPay.Text = grossPay lblTotalDeductions.Text = totalDeds lblNetPay.Text = netPay End Sub End Class