Forum Discussion
AlexKaras
Champion Level 2
13 years agoHi,
First of all - thanks for the correction: sure I meant .SetText(), but not .Text.
As for how to react on the behavior you are observing - this is a question to you and your developers.
The case is .Keys() emulates as if it is user who types characters on the keyboard. And it is possible that control/developers implement the method for the OnKeyPress event (or the like) to process/filter/change characters as they are typed.
Alternatively, the SetText() method assigns value directly, bypassing the OnKeyPress handler routine. In some cases for some applications this is acceptable, but in some cases it is not. Whether it is OK or not in your case - should be decided by you.
First of all - thanks for the correction: sure I meant .SetText(), but not .Text.
As for how to react on the behavior you are observing - this is a question to you and your developers.
The case is .Keys() emulates as if it is user who types characters on the keyboard. And it is possible that control/developers implement the method for the OnKeyPress event (or the like) to process/filter/change characters as they are typed.
Alternatively, the SetText() method assigns value directly, bypassing the OnKeyPress handler routine. In some cases for some applications this is acceptable, but in some cases it is not. Whether it is OK or not in your case - should be decided by you.