Microsoft DirectX 8.1 (Visual Basic)

DirectXEvent8.DXCallback

A callback routine for event handles.

object.DXCallback( _
    eventid As Long)

Parts

object
Object expression that resolves to a DirectXEvent8 object.
eventid
Long value containing the event handle. This handle must have been created by DirectX8.CreateEvent.

Error Codes

If the method fails, an error is raised and Err.Number is set.

Remarks

When you implement DirectXEvent8 in a form, you must also supply an implementation of the DirectXEvent.DXCallback method. The declaration and end of the method are automatically placed in the Code window when you select DirectXEvent8 in the Object box and DXCallback in the Procedures/Events box. The method takes the following form:

Private Sub DirectXEvent8_DXCallBack(ByVal eventid as Long)
  ' Add your own event-handling code 
  .
  .
  .
End Sub

The event handle passed to the method must have been created by DirectX8.CreateEvent.

See Also

DirectX8.SetEvent