Hi all,
I'd like to prevent the input of inappropriate characters to a text box. I have an ascii check on the KeyPress event which weeds out non-numeric and non-alphabetic characters, however it is still possible to add dodgy characters via the paste option on the right-click dropdown menu. Is there a property I can set to prevent pasting into a text box? Or will I have to check the contents of the text box through code?
Cheers,
DaveMere
I'd like to prevent the input of inappropriate characters to a text box. I have an ascii check on the KeyPress event which weeds out non-numeric and non-alphabetic characters, however it is still possible to add dodgy characters via the paste option on the right-click dropdown menu. Is there a property I can set to prevent pasting into a text box? Or will I have to check the contents of the text box through code?
Cheers,
DaveMere