DesktopOLEContainer.Create

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!
Method


DesktopOLEContainer.Create([Show as Boolean]) As Boolean

New in 2021r3

Supported for all project types and targets.

Creates an ActiveX control. Create uses the ProgramID property to create the ActiveX control.

Notes

Returns a Boolean: True if successful, False if unsuccessful. The optional parameter Show determines whether the control is activated when it is created. The default is True. Some ActiveX controls require some properties to be set before they are activated. In this case, set Show to False and then activate it with a call to the Show method.