Private Sub TxtSalario_KeyPress(KeyAscii As Integer)
If KeyAscii <> 8 Then
If KeyAscii = 46 And (InStr(TxtSalario.Text, Chr(KeyAscii)) <> 0) Then
If TxtSalario = "" Then
If KeyAscsii < Asc("1") Or KeyAscii > Asc("9") Then
KeyAscii = 0
Beep
End If
Else
If KeyAscii < Asc("0") Or KeyAscii > Asc("9") Then
KeyAscii = 0
Beep
End If
End If
End If
End If
End Sub