You could, but then how do you strip it out? If you try to strip it out, the cursor moves to the beginning of the textbox. Not very tidy.
>Nigel,
>
>Couldn't you check the actual value of the checkbox in the interactive change
>
>Mace
>
>>I need to identify the keypress in a textbox
but it needs to identify the actual character, not the key pressed.
>>
>>Example: I need to prevent quote and double-quote from being entered. If I use the keypress event nKeyCode, this will not work with different keyboard mappings. Here, double-quote is shift+2 but I can't trap shift+2 because it will be different on other mappings.
>>
>>Anybody have any ideas?