SBendBuckeye
Programmer
Hello all,
I'm overriding WndProc to do some data validation before a given key press is accepted in a TextBox. Nothing fancy, just the standard stuff and doing a Return if the validation fails so that the key press is never handled by MyBase.WndProc and is thus discarded.
Everything is working properly. How do I know where the current key press will be inserted in the Text property. When entering data, I can click or use the arrow keys to move my insertion point anywhere in the TextBox. Any ideas and/or suggestions would certainly be appreciated!
Have a great day!
j2consulting@yahoo.com
I'm overriding WndProc to do some data validation before a given key press is accepted in a TextBox. Nothing fancy, just the standard stuff and doing a Return if the validation fails so that the key press is never handled by MyBase.WndProc and is thus discarded.
Everything is working properly. How do I know where the current key press will be inserted in the Text property. When entering data, I can click or use the arrow keys to move my insertion point anywhere in the TextBox. Any ideas and/or suggestions would certainly be appreciated!
Have a great day!
j2consulting@yahoo.com