method Editor.UserEditor (ControlID as String, License as String)
Specifies the control's identifier and the control's runtime license key when EditType is UserEditor.

 TypeDescription 
   ControlID as String A string expression that indicates the control's program identifier. For instance, if you want to use a multiple column combobox as an user editor, the control's identifier could be: "Exontrol.ComboBox".   
   License as String Optional. A string expression that indicates the runtime license key in case is it required. It depends on what control are you using.  
The UserEditor property creates a new type of editor based on the ControlID parameter. Use the UserEditorObject property to access the newly created object. The UserEditorObject property points to nothing if the control wasn't able to create the user editor based on the ControlID. Also, if the user control requires a runtime license key, and the License parameter is empty or doesn't match, the UserEditorObject property points to nothing. The control fires the UserEditorOpen event when a ActiveX editor is about to be opened. The control fires the UserEditorClose event when the user editor needs to be closed. The control fires the UserEditorOleEvent event each time when an user editor fires an event.

The following VB sample adds an ActiveX editor, ( Exontrol's ExComboBox ):


The following C++ sample adds an ActiveX editor, ( Exontrol's ExComboBox ):

The sample requires the #import <excombobox.dll> to include the ExComboBox's type library. The #import <excombobox.dll> creates EXCOMBOBOXLib namespace that includes all definitions for objects and types that the ExComboBox control exports.

The following VB.NET sample adds an ActiveX editor, ( Exontrol's ExComboBox ):

The following C# sample adds an ActiveX editor, ( Exontrol's ExComboBox ):

In C# your project needs a new reference to the Exontrol's ExComboBox control library. Use the Project\Add Reference\COM item to add new reference to a COM object. Once that you added a reference to the Exontrol's ExComboBox the EXCOMBOBOXLib namespace is created. The EXCOMBOBOXLib namespace contains definitions for all objects that ExComboBox control exports.

The following VFP sample adds an ActiveX editor, ( Exontrol's ExComboBox ):

 


Send comments on this topic.
1999-2015 Exontrol.COM, Software. All rights reserved.