Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27569

Limiting inputs for a text box

$
0
0
I am currently disabling a user from typing anything but letters into a text box using this code:
Code:

If Not Char.IsLetter(e.KeyChar) Then e.Handled = True And MsgBox("Please enter letters only")
However how can i change it so it also allows backspace, enter and spacebar as well as letters?

Any help would be really appreciated :D

Viewing all articles
Browse latest Browse all 27569

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>