Quantcast
Channel: Allow only a decimal point after an input of three digits in a textbox in VB.NET? - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by Olivier Jacot-Descombes for Allow only a decimal point after an...

Try it with:Select Case myE.KeyChar Case "0"c To "9"c, "."c myE.Handled = InStr(myTextbox.Text, ".") > 0 Case ControlChars.Back, Convert.ToChar(127) myE.Handled = False Case Else myE.Handled =...

View Article



Answer by Nicholas for Allow only a decimal point after an input of three...

In WinForms you could accomplish this by using the TextChanged-Event of the Textbox and RegularExpressions:Example:Imports System.Text.RegularExpressionsPublic Class Form1 Private Sub...

View Article

Allow only a decimal point after an input of three digits in a textbox in...

How do I allow only a decimal point after an input of three digits in a textbox in VB.NET?Let's say I inputed "123" after that I can only put a decimal else it wont allow any other input. So the result...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images