How to Simulate ON KEY & Key Trapping by Using KeyDown Event (75858)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition for Windows 2.0
- Microsoft Visual Basic Standard Edition for Windows 3.0
- Microsoft Visual Basic Professional Edition for Windows 2.0
- Microsoft Visual Basic Professional Edition for Windows 3.0
- Microsoft Visual Basic Standard Edition for Windows 1.0
This article was previously published under Q75858 SUMMARY
Although there is no ON KEY GOSUB statement in Visual Basic, you can
achieve an effect identical to ON KEY event handling. Visual Basic forms
and controls that are able to get focus have a KeyDown event procedure that
can simulate the effects of the ON KEY statements in Basic interpreters and
compilers for MS-DOS. In fact, the KeyDown event procedure is more powerful
and flexible than the ON KEY statement.
Modification Type: | Major | Last Reviewed: | 12/12/2003 |
---|
Keywords: | KB75858 |
---|
|