Control characters entered in TextBox

werata

Newcomer
Joined
Oct 24, 2003
Messages
2
Hello! I'm very confused about following :

Using VB.NET 2003 I want to control the charaters entered in TextBox control. I want to allow only cyrillic characters. I use Keypress event of TextBox to catch the character.

Under Windows 2000 and XP e.KeyChar returns cyrillic character, but under Windows 98 e.KeyChar returns the corresponding (I mean on the keyboard) latin character.
Can anybody explain this behaviour of e.KeyChar?
Is there some way to control entered characters with the same VB.NET code under Windows 2000, XP and 98?
Thanks in advance
Werata
 
Back
Top