Cordial greeting colleagues, it turns out that I have a form in MS Visual Basic and I'm doing the respective validations to the buttons and text boxes. In text boxes, you must validate that you only receive whole numbers, do not allow decimals or text. To validate that you can not enter text use the following code in the textbox:
Private Sub txtlevantamiento_TextChanged(sender As Object, e As EventArgs) Handles txtlevantamiento.TextChanged
'Funcion para que solo se pueda escribir numeros en el textbox
If Not IsNumeric(txtlevantamiento.Text) Then
txtlevantamiento.Text = " "
End If
End Sub
What additional conditional could you add so that you can only write whole numbers and prevent them from writing decimals?