Hi! How do you guys validate an edit control to accept only some chars? I have a theory about it... 1.- subclass the edit control 2.- trap the WM_KEYPRESS or WM_CHAR 3.- test the character stroke. is this the proper way? Additional: I'm trying to accept only the following chars: 0-9 and .