Gday, You need to look into input filtering. It's just a matter of sub-classing the edit control, passing only the allowed characters as input, while discarding undesired ones. Here's an article that deals with input filtering. Enhanced Focus Edit Control with Input Filtering[^]