Platform SDK: Broadcast Architecture

BPCVid.KeyPress

The KeyPress event occurs when the user presses and releases an ANSI key while the Video control has focus. Visual Basic syntax is shown.

Private Sub object_KeyPress(keyascii As Integer)

Parts

object
Object expression that resolves to a BPCVid object.
keyascii
Integer that returns a standard numeric ANSI keycode. Changing the keyascii parameter to zero cancels the keystroke so the object is not assigned a character.

Remarks

A KeyPress event can indicate that a user pressed any keyboard key that produces a printable character, the CTRL key combined with a character from the standard alphabet, one of a few ANSI-defined special characters, and the ENTER or BACKSPACE key.

Requirements

  Windows NT/2000: Unsupported.
  Windows 95/98: Requires Windows 98.
  Header: Declared in vidsvr.odl.
  Import Library: Included as a resource in vid.ocx.

See Also

BPCVid, BPCVid.KeyDown, BPCVid.KeyUp