Private Sub Vehicle_Fuel_DriverCheckBox_CheckStateChanged(sender As Object, e As EventArgs) Handles Vehicle_Fuel_DriverCheckBox.CheckStateChanged Try If Vehicle_Fuel_DriverCheckBox.CheckState = True Then Dim TotalCashEmoluments As Integer Dim VFDLmt As Integer Dim VHF As Integer Dim TotalVHF As Integer ' Calculating VFD VHF = TotalCashEmoluments * 0.125 'Checking and deducting with limits If VHF = VFDLmt Then TotalVHF = VFDLmt End If If VHF > VFDLmt Then TotalVHF = VFDLmt End If If VHF < VFDLmt Then TotalVHF = VFDLmt + 0 End If End If Catch ex As Exception MessageBox.Show(ex.StackTrace, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error) End Try End Sub
VHF = TotalCashEmoluments * 0.125
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)