NETHostObject object
Tip The /COM object can be placed on a HTML page (with usage of the HTML object tag:  <object classid="clsid:...">)  using the class identifier: {64D3E57D-0B38-4863-BBF4-3AEAC3E455C2}. The object's program identifier is: "Exontrol.NETHostObject". The /COM object module is: "mscoree.dll"

The Exontrol NETHost control enables seamless integration and display of any .NET object or Windows Forms UserControl within your COM-based projects, including Windows forms and dialogs. By specifying the fully qualified assembly path and type name, NETHost loads and renders the .NET component directly inside your application. For example, setting the NETHost.AssemblyQualifiedName property to "System.Windows.Forms.MonthCalendar, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" will embed the standard .NET MonthCalendar control into your window, form, or dialog.

Features include:

1. Hosting & Integration

2. Event & Error Handling

3. Scripting & Code Execution

The object supports the following properties and methods:

NameDescription
AsBooleanReturns a boolean value that represents the current object's value.
AsDateReturns a date value that represents the current object's value.
AsDoubleReturns a numeric value that represents the current object's value.
AsIntReturns an integer value that represents the current object's value.
AssemblyVersionIndicates the version of the assembly being loaded.
AsStringReturns a string that represents the current object's value.
ItemExecutes the template and returns the result.
SetTemplateDefDefines inside variables for the next Template/ExecuteTemplate call.
SetValueSpecifies the value of the object.
TemplateExecutes the x-script code.
TemplateErrorIndicates the error code of the last Template call.
TemplateExceptionIndicates the detailed information about the exception that occurs.
TemplateResultIndicates the result of the last Template call.
TemplateThrowErrorSpecifies whether the execution of the template stops once an error occurs.
TypeIndicates the type of the object's value.
ValueSpecifies the value of the object.
VtTypeIndicates the type/vartype of the object's value.