Active-X Events

If the AllowRightProps property is set to True, then right-clicking on the control displays the control’s property pages, allowing the other barcode properties to be edited. If AllowRightProps is False, then right click events are passed as described below.

In addition, the following events are exported by the control and may be used by the container:

DblClick() – mouse double click

KeyDown(short KeyCode, short Shift) – a key pressed down; KeyCode identifies the keycode and Shift represents the state of the shift key

KeyUp(short KeyCode, short Shift) – a key released

MouseDown(short Button, short Shift, OLE_XPOS_PIXELS x, OLE_XPOS_PIXELS y) – a mouse button is pressed, Button identifies the mouse button, Shift represents the state of the shift key, a and y identify the location of mouse cursor.

MouseUp(short Button, short Shift, OLE_XPOS_PIXELS x, OLE_XPOS_PIXELS y) – a mouse button is released.

 

More:

Error codes