General information
Title:
KeyPress event in base class for textbox
Environment versions
Network:
Windows 2008 Server
Hi, everyone.
I have question about KeyPress event.
I have base class stdtxt and i created many text boxes based on this class and all text boxes objects have inputmask like !!!!!!!!!!!!
But customer complained that if user accidantely press control+B or O (or maybe othercontrol combination) some garbage characters are inserted into those textboxes
I know that i can modify each of those textboxes inserting NODEFAULT : IF nKeyCode less than 32
NODEFAULT
ENDIF
. But i tried to do it in the base class to avoid making changes in all textboxes but it did not work.
Also i did like this in base class : if nKeyCode less than 32 nKeyCode = 32 endif , But it also did not work
object receive nKeyCode like 17 or 16.
What else i can do in base class to solve this.
thanks.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only