I have simple textBox and I want to validate its input including \"+\" , \"-\" and \".\" here is what I have tried
Private Sub DisplayValue_TextBox_Change()
Im using that:
Private Sub txtGiaNet_Change() If IsNumeric(txtGiaNet.Value) Then //if number do sth Else //if not, delete this character txtGiaNet.Value = Left(txtGiaNet.Value, Len(txtGiaNet.Value) - 1) End If End Sub