Implements a timer that raises an event at user-defined intervals. This timer is optimized for use in Windows Forms applications and must be used in a window.
The TCnTimer type exposes the following members.
Get the common language runtime object interface for this component. (Inherited from TClrBaseComponent.)
Gets or sets whether the timer is running.
Gets or sets the time, in milliseconds, before the Tick event is raised relative to the last occurrence of the OnTick event.
Releases the resources used by the Component. (Inherited from TClrBaseComponent.)
Add an event to the instance using the specified event name and function pointer which is the event handler. The RegisterEventCallBack method does not directly add the event handler to the event. A hooking mechanism is used such that if the event is fired, the hook event is also fired which in turn calls the function pointer. (Inherited from TClrBaseComponent.)
Register the Delphi object which will raise the .Net event handler. (Inherited from TClrBaseComponent.)
Starts the timer.
Stops the timer.
Remove an event from the instance using the specified event name and function pointer which is the event handler. (Inherited from TClrBaseComponent.)
Unregister the Delphi object which raised the .Net event handler. (Inherited from TClrBaseComponent.)
See C:\Users\Public\Documents\CrystalNet Technologies\.Net VCL for Delphi Demo Folder after installation for examples of how to use this component.