Secondary Interfaces

See Also  Example  Applies to

The following interfaces are exposed to allow notification of timer "events" without threat of being blocked by modal dialog boxes or message boxes. Although such blocking typically only occurs within the Visual Basic IDE, it can be a nuisance during the development process. In addition, event notification via an interface can be many times faster than through the inherently late-bound WithEvents model.

ICcrpTimerNotify

Implement the ICcrpTimerNotify interface within your class or form to be notified of all ccrpTimer events via a method call. This interface is designed for use in situations where a single timer object is being used.

Option Explicit
Public Sub Timer(ByVal Milliseconds As Long)
End Sub

ICcrpTimerNotifyEx

Implement the ICcrpTimerNotify interface within your class or form to be notified of all ccrpTimer events via a method call. This interface is designed for use in situations where a multiple timer objects is being used. Provides a method to simulate control arrays.

Option Explicit
Public Sub Timer(ByVal Milliseconds As Long, ByVal Tmr As ccrpTimer)
End Sub

ICcrpCountdownNotify

Implement the ICcrpCountdownNotify interface within your class or form to be notified of all ccrpCountdown events via method calls. This interface is designed for use in situations where a single timer object is being used.

Option Explicit
Public Sub Tick(ByVal TimeRemaining As Long)
End Sub
Public Sub Timer()
End Sub

ICcrpCountdownNotifyEx

Implement the ICcrpCountdownNotify interface within your class or form to be notified of all ccrpCountdown events via method calls. This interface is designed for use in situations where a single timer objects are being used. Provides a method to simulate control arrays.

Option Explicit
Public Sub Tick(ByVal TimeRemaining As Long, ByVal Tmr As ccrpCountdown)
End Sub
Public Sub Timer(ByVal Tmr As ccrpCountdown)
End Sub