Gan,
The easiest way is to set the txt.Format to M and set the InputMask to M,F
>I have a textbox for entering "Sex", it's either M or F. How to make the user only be able to enter M or F from the keyboard, just like entering Y/N?
>??? Set the event txtSex.InteractiveChange? Please help me with the code.