Numeric Text box Control, without creating OCX - Defect Fixed Code
Numeric Text box Control, without creating OCX - Defect Fixed Code
API Declarations
' Add Text box Control
' Added Following code for the Key-press event
' For More Refer Following URL
' http://www.syncfusion.com/faq/windowsforms/faq_c94c.aspx
' http://www.java2s.com/Tutorial/VB/0260__GUI/DisableTextBoxContextMenu.htm
Rate Numeric Text box Control, without creating OCX - Defect Fixed Code
(1(1 Vote))
If Char.IsDigit(digit) Or digit = ChrW(Keys.Back) Then
e.Handled = False
Else
If TextBoxNumeric.Text.Contains(".") = True Then
e.Handled = True
Else
If Char.IsLetter(digit) Or Char.IsWhiteSpace(digit) Then
e.Handled = True
Else
e.Handled = False
End If
End If
End If
Numeric Text box Control, without creating OCX - Defect Fixed Code Comments
No comments yet — be the first to post one!
Post a Comment