Hi, Im coding an application where the input to a edit box needs to be restricted to base 16 and another to base 2.. After a good look around google i cant see how you do this in mfc ? +is there a way to get a keypress event upon a charateur being submitted into the edit control

Thanks for any help.