
This method is used to register an ActiveX control. When installing your software to another machine each ActiveX control that is used in your program must be registered to the users machine. There are two ways to do this. The most common is to use a proper installation package that will register the ActiveX controls for you. The other is to use this method to register the controls. It is your responsibility to ensure that you do not call this method on any ActiveX control more than once. No damage will be done, but registering ActiveX controls consumes a noticeable amount of time.
Returns the following according to the situation:
Copy Code |
|---|
(Odcl_RegisterActiveXCtrl sActiveXFileName [as String]) |
Copy Code |
|---|
; Register this ActiveX (Odcl_RegisterActiveXCtrl MyProject_MyForm_MyControl "MyActiveX.ocx") |