To delete an event from an Event control, follow the steps below:
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.
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.
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.