Removing Events From Event Controls

Applies to TestComplete 15.63, last modified on April 23, 2024

To delete an event from an Event control, follow the steps below:

  1. Open the Event Control editor. To do this, right-click the desired Event control in the Project Explorer and select Edit from the context menu. TestComplete will show the Event Control editor in the Workspace panel.

    Event Control Editor

    Click the image to enlarge it.

  2. In the editor, select the desired event in the Events to Handle list (you can use Ctrl and Shift for multiple selection). Right-click the selected event(s) and choose Delete from the context menu or press Del. The events will be removed from the control.

  3. When you command TestComplete to save the changes, it will update the Event control’s implementation and automatically register the control in the operating system. The control can then be used in TestComplete or in any other application..

Note: The Event control is implemented by two modules: one of them, <TestComplete>\Bin\Extensions\tcEventControl.ocx, holds the binary code of the control. The other is the type library <EventControlName>.tlb that describes the control’s events. Its location depends on the “Unregister the type library when the project is closed” setting (see Event Control Modules).

TestComplete does not recompile the .ocx module. It updates only the type library.

See Also

Handling Events - Overview
Adding Events to Event Controls
Adding and Removing Project Items and Their Child Elements
About Event Control Editor
Event Control Editor

Highlight search results