qck.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
KeyPress Event
  ◄Summary►  ◄Details►  ◄Example►                ◄Contents►  ◄Index►  ◄Back►
──────────────────────────────────────────────────────────────────────────────
 Occurs when the user presses an ASCII key. The object with the focus
 receives the event. A form can receive the event only if it has no visible
 or enabled controls.
 
    SUB Form_KeyPress (KeyAscii AS INTEGER)
    SUB ctlname_KeyPress ([Index AS INTEGER] KeyAscii AS INTEGER)
 
    ■ KeyAscii   Returns a standard numeric ASCII character value
 
    ■ Index      Uniquely identifies a control in a control array
 
 Applies To
    ◄Check Box Control►                ◄Combo Box Control►
    ◄Command Button Control►           ◄Directory List Box Control►
    ◄Drive List Box Control►           ◄File List Box Control►
    ◄Form►                             ◄Horizontal Scroll Bar Control►
    ◄List Box Control►                 ◄Option Button Control►
    ◄Picture Box Control►              ◄Text Box Control►
    ◄Vertical Scroll Bar Control►
 
 See Also
    ◄ASCII Character Codes►            ◄Change Event►
    ◄Creating a Control Array►         ◄KeyDown Event►
    ◄KeyUp Event►