O
One Handed Man [ OHM# ]
OK, here is a mildy interesting one. What is the cleanest way to do the following.
Every time a keyPress event occurs, I wan to check for the quote ( " ) and subsitute it for the apostrophe ( ' ). Detecting this is easy, but what is the cleanest way to subsitute that character in the current cursor position in the textbox. Its a pity that you cannot alter the KeyValue but all those properties are readonly.
The reason I'm asking this is because I have to leave for a couple of hourse and just wondered if I might have it solved by the time I return.
Every time a keyPress event occurs, I wan to check for the quote ( " ) and subsitute it for the apostrophe ( ' ). Detecting this is easy, but what is the cleanest way to subsitute that character in the current cursor position in the textbox. Its a pity that you cannot alter the KeyValue but all those properties are readonly.
The reason I'm asking this is because I have to leave for a couple of hourse and just wondered if I might have it solved by the time I return.