This project is read-only.

ControlCallbacks Property

Returns a collection of the callbacks registered to the cControl_EventHandler. Read-only Collection.



object A reference to a cControl_EventHandler class instance.


ControlCallback returns callbacks that are registered at the control level. That is, callbacks registered at this level are executed any time any event trapped by the EventHandler object is triggered. The collection returns the callbacks as a series of values stored in a Variant array. Refer to the Callbacks wiki page for information regarding the callback array.


This example returns the array of callbacks for a given cControl_EventHandler class instance, iterates the collection, and displays the name of each registered function in a message box.

Dim cb As Collection
Dim x as Integer

Set cb = myControlEventHandler.ControlCallbacks

For x = 1 to cb.Count

     'second index of the stored array contains the function name.
     MsgBox "Function name: " & cb(x)(1)

Next x

Last edited Dec 20, 2010 at 2:57 AM by vba_junkie, version 1


No comments yet.