Numerical Keypad entry interdict?
Dim allowedCharsAsString ="0123456789."If allowedChars.IndexOf(e.KeyChar) = -1Then e.Handled =TrueIf Display.Text.IndexOf(".") >= 0And e.KeyChar ="."Then e.Handled =TrueEndSub
This code below makes it work.
PrivateSub Form1_KeyPress(ByVal senderAsObject,ByVal eAs System.Windows.Forms.KeyPressEventArgs)HandlesMe.KeyPressIf e.KeyChar >= ChrW(48)And e.KeyChar <= ChrW(57)Or e.KeyChar = ChrW(8)Or e.KeyChar = ChrW(46)Or e.KeyChar = ChrW(45)ThenDisplay.Text = e.KeyChar.ToString()
EndIfEndSubPM 11:50 Sunday ET
Well, it works.
PROBLEM: THE KEY ENTRY HAS TO BE SLOWN DOWN, OTHERWISE GIVES DOUBLE, QUATRUPLE ENTRIES.
If Display.Text ="0"Then Display.Text =""Display.Text = Display.Text + e.KeyChar.ToString
A = Convert.ToDouble(Display.Text)
EndIfMsgBox(
"hello")Here the entry between numbers is slown down with "hello". Is that not crazy?
MS help me out here, please.

