Hi All,
Based on code below, the calculation will give result display such 1.23456789000%. How to convert the decrease decimal become 1.23% only.
Please help... Thanks guys.
Private Sub RejectPercentage_ValueChanged(sender As Object, e As EventArgs) Handles RejectPercentage.TextChanged, TotalLabel.TextChanged, TextBox1.TextChanged
Try
RejectPercentage.Text = (CInt(TotalLabel.Text) / CInt(TextBox1.Text)) * 100
Catch ex As Exception
End Try
End Sub