21:
How can I use the Template property
<BODY onload="Init()">
<OBJECT CLASSID="clsid:FDCBA3E0-4E2F-4DC7-B073-EAA7BD7EC565" id="NETHost1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	NETHost1.AssemblyLocation = "C:\\Windows\\assembly\\GAC_MSIL\\System.Windows.Forms\\2.0.0.0__b77a5c561934e089\\System.Windows.Forms.dll";
	NETHost1.AssemblyName = "System.Windows.Forms.TreeView";
	NETHost1.Host.Template = "Nodes { Add(`Root 1`).Nodes { Add(`Child 1`); Add(`Child 2`) }  }";
}
</SCRIPT>
</BODY>

20:
How can I use the TemplateResult property (method 2)
<BODY onload="Init()">
<OBJECT CLASSID="clsid:FDCBA3E0-4E2F-4DC7-B073-EAA7BD7EC565" id="NETHost1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	NETHost1.AssemblyLocation = "C:\\Windows\\assembly\\GAC_MSIL\\System.Windows.Forms\\2.0.0.0__b77a5c561934e089\\System.Windows.Forms.dll";
	NETHost1.AssemblyName = "System.Windows.Forms.TreeView";
	var var_NETHostObject = NETHost1.Host;
		var_NETHostObject.Template = "Nodes.Add(`Root 1`){ BackColor = RGB(255,0,0);ForeColor = RGB(255,255,255) }";
		var_NETHostObject.TemplateResult.Template = "Nodes{ Add(`Child 1`); Add(`Child 2`) }; Expand() }";
}
</SCRIPT>
</BODY>

19:
How can I use the TemplateResult property (method 1)
<BODY onload="Init()">
<OBJECT CLASSID="clsid:FDCBA3E0-4E2F-4DC7-B073-EAA7BD7EC565" id="NETHost1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	NETHost1.AssemblyLocation = "C:\\Windows\\assembly\\GAC_MSIL\\System.Windows.Forms\\2.0.0.0__b77a5c561934e089\\System.Windows.Forms.dll";
	NETHost1.AssemblyName = "System.Windows.Forms.TreeView";
	var var_NETHostObject = NETHost1.Host;
		var_NETHostObject.Template = "Nodes.Add(`Root 1`)";
		var var_NETHostObject1 = var_NETHostObject.TemplateResult;
			var_NETHostObject1.Template = "Nodes.Add(`Child 1`)";
			var_NETHostObject1.Template = "Nodes.Add(`Child 2`)";
			var_NETHostObject1.Template = "Expand()";
}
</SCRIPT>
</BODY>

18:
How can I find the information about the hosting control, like name, version, ...
<BODY onload="Init()">
<OBJECT CLASSID="clsid:FDCBA3E0-4E2F-4DC7-B073-EAA7BD7EC565" id="NETHost1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	NETHost1.AssemblyQualifiedName = "System.Windows.Forms.ListBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089";
	var var_NETHostObject = NETHost1.Host;
		alert( var_NETHostObject.Item("ProductName").Value );
		alert( var_NETHostObject.Item("ProductVersion").Value );
		alert( var_NETHostObject.Item("CompanyName").Value );
}
</SCRIPT>
</BODY>

17:
How do I get the hwnd/handle of the hosting control
<BODY onload="Init()">
<OBJECT CLASSID="clsid:FDCBA3E0-4E2F-4DC7-B073-EAA7BD7EC565" id="NETHost1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	NETHost1.AssemblyLocation = "C:\\Windows\\assembly\\GAC_MSIL\\System.Windows.Forms\\2.0.0.0__b77a5c561934e089\\System.Windows.Forms.dll";
	alert( NETHost1.Host.Item("Handle").AsInt );
}
</SCRIPT>
</BODY>

16:
How do I get the number of arguments that an event has
<BODY onload="Init()">
<SCRIPT FOR="NETHost1" EVENT="HostEvent(Ev)" LANGUAGE="JScript">
	alert( "Ev.Arguments.Item(\"GetType().GetProperties().Length\").AsString" );
	alert( Ev );
</SCRIPT>

<OBJECT CLASSID="clsid:FDCBA3E0-4E2F-4DC7-B073-EAA7BD7EC565" id="NETHost1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	NETHost1.AssemblyLocation = "C:\\Windows\\assembly\\GAC_MSIL\\System.Windows.Forms\\2.0.0.0__b77a5c561934e089\\System.Windows.Forms.dll";
}
</SCRIPT>
</BODY>

15:
How can I change the control's background color, as BackgroundColor seems to have no effect

<BODY onload="Init()">
<OBJECT CLASSID="clsid:FDCBA3E0-4E2F-4DC7-B073-EAA7BD7EC565" id="NETHost1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	NETHost1.AssemblyLocation = "C:\\Windows\\assembly\\GAC_MSIL\\System.Windows.Forms\\2.0.0.0__b77a5c561934e089\\System.Windows.Forms.dll";
	NETHost1.AssemblyName = "System.Windows.Forms.TreeView";
	var var_NETHostObject = NETHost1.Host;
		var_NETHostObject.Template = "BackColor = RGB(240,240,240)";
		var var_NETHostObject1 = var_NETHostObject.Item("Nodes.Add(`Root`)");
			var var_NETHostObject = var_NETHostObject1.Item("Nodes.Add(`Child 1`)");
			var_NETHostObject1 = var_NETHostObject1.Item("Nodes.Add(`Child 2`)");
			var var_Object = var_NETHostObject1.Item("Expand()");
}
</SCRIPT>
</BODY>

14:
How can I add a TreeView

<BODY onload="Init()">
<OBJECT CLASSID="clsid:FDCBA3E0-4E2F-4DC7-B073-EAA7BD7EC565" id="NETHost1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	NETHost1.AssemblyLocation = "C:\\Windows\\assembly\\GAC_MSIL\\System.Windows.Forms\\2.0.0.0__b77a5c561934e089\\System.Windows.Forms.dll";
	NETHost1.AssemblyName = "System.Windows.Forms.TreeView";
	var var_NETHostObject = NETHost1.Host;
		var var_NETHostObject1 = var_NETHostObject.Item("Nodes.Add(`Root 1`)");
			var var_NETHostObject = var_NETHostObject1.Item("Nodes.Add(`Child 1`)");
			var var_NETHostObject2 = var_NETHostObject1.Item("Nodes.Add(`Child 2`)");
				var_NETHostObject1 = var_NETHostObject2.Item("Nodes.Add(`Sub-Child 2.1`)");
				var_NETHostObject2 = var_NETHostObject2.Item("Nodes.Add(`Sub-Child 2.2`)");
				var var_NETHostObject3 = var_NETHostObject2.Item("Nodes.Add(`Sub-Child 2.3`)");
				var var_Object = var_NETHostObject2.Item("Expand()");
			var var_NETHostObject4 = var_NETHostObject1.Item("Nodes.Add(`Child 3`)");
			var var_Object1 = var_NETHostObject1.Item("Expand()");
		var var_NETHostObject5 = var_NETHostObject.Item("Nodes.Add(`Root 2`)");
			var_NETHostObject5 = var_NETHostObject5.Item("Nodes.Add(`Child 1`)");
			var var_NETHostObject6 = var_NETHostObject5.Item("Nodes.Add(`Child 2`)");
			var var_NETHostObject7 = var_NETHostObject5.Item("Nodes.Add(`Child 3`)");
}
</SCRIPT>
</BODY>

13:
How can I add a ProgressBar

<BODY onload="Init()">
<OBJECT CLASSID="clsid:FDCBA3E0-4E2F-4DC7-B073-EAA7BD7EC565" id="NETHost1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	NETHost1.AssemblyLocation = "C:\\Windows\\assembly\\GAC_MSIL\\System.Windows.Forms\\2.0.0.0__b77a5c561934e089\\System.Windows.Forms.dll";
	NETHost1.AssemblyName = "System.Windows.Forms.ProgressBar";
	var var_NETHostObject = NETHost1.Host;
		var_NETHostObject.SetTemplateDef("Dim percent");
		var_NETHostObject.SetTemplateDef(50);
		var_NETHostObject.Template = "Value = percent";
}
</SCRIPT>
</BODY>

12:
How can I add a DateTimePicker

<BODY onload="Init()">
<OBJECT CLASSID="clsid:FDCBA3E0-4E2F-4DC7-B073-EAA7BD7EC565" id="NETHost1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	NETHost1.AssemblyLocation = "C:\\Windows\\assembly\\GAC_MSIL\\System.Windows.Forms\\2.0.0.0__b77a5c561934e089\\System.Windows.Forms.dll";
	NETHost1.AssemblyName = "System.Windows.Forms.DateTimePicker";
	var var_NETHostObject = NETHost1.Host;
		var_NETHostObject.SetTemplateDef("Dim date");
		var_NETHostObject.SetTemplateDef("1/1/2001");
		var_NETHostObject.Template = "Value = date";
}
</SCRIPT>
</BODY>

11:
How can I add CheckedListBox

<BODY onload="Init()">
<OBJECT CLASSID="clsid:FDCBA3E0-4E2F-4DC7-B073-EAA7BD7EC565" id="NETHost1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	NETHost1.AssemblyLocation = "C:\\Windows\\assembly\\GAC_MSIL\\System.Windows.Forms\\2.0.0.0__b77a5c561934e089\\System.Windows.Forms.dll";
	NETHost1.AssemblyName = "System.Windows.Forms.CheckedListBox";
	var var_NETHostObject = NETHost1.Host;
		var_NETHostObject.Template = "FormattingEnabled = True";
		var_NETHostObject.Template = "Items.Add(`Check 1`)";
		var_NETHostObject.Template = "Items.Add(`Check 2`,True)";
}
</SCRIPT>
</BODY>

10:
How can I specify the list of events to be handled
<BODY onload="Init()">
<SCRIPT FOR="NETHost1" EVENT="HostEvent(Ev)" LANGUAGE="JScript">
	alert( Ev );
	alert( "Button " );
	alert( Ev );
</SCRIPT>

<OBJECT CLASSID="clsid:FDCBA3E0-4E2F-4DC7-B073-EAA7BD7EC565" id="NETHost1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	NETHost1.BackgroundColor = 16777215;
	NETHost1.HostEvents = "MouseUp MouseDown";
	NETHost1.Create("C:\\Windows\\assembly\\GAC_MSIL\\System.Windows.Forms\\2.0.0.0__b77a5c561934e089\\System.Windows.Forms.dll","System.Windows.Forms.MonthCalendar");
	NETHost1.Host.Template = "MaxSelectionCount = 1";
}
</SCRIPT>
</BODY>

9:
Is it possible to handle only a specific event
<BODY onload="Init()">
<SCRIPT FOR="NETHost1" EVENT="HostEvent(Ev)" LANGUAGE="JScript">
	alert( Ev );
</SCRIPT>

<OBJECT CLASSID="clsid:FDCBA3E0-4E2F-4DC7-B073-EAA7BD7EC565" id="NETHost1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	NETHost1.BackgroundColor = 16777215;
	NETHost1.Create("C:\\Windows\\assembly\\GAC_MSIL\\System.Windows.Forms\\2.0.0.0__b77a5c561934e089\\System.Windows.Forms.dll","System.Windows.Forms.MonthCalendar");
	NETHost1.HostEvents = "DateSelected";
	var var_NETHostObject = NETHost1.Host;
		var_NETHostObject.Template = "MaxSelectionCount = 1";
}
</SCRIPT>
</BODY>

8:
How can I handle events withing the control
<BODY onload="Init()">
<SCRIPT FOR="NETHost1" EVENT="HostEvent(Ev)" LANGUAGE="JScript">
	alert( Ev );
</SCRIPT>

<OBJECT CLASSID="clsid:FDCBA3E0-4E2F-4DC7-B073-EAA7BD7EC565" id="NETHost1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	NETHost1.BackgroundColor = 16777215;
	NETHost1.Create("C:\\Windows\\assembly\\GAC_MSIL\\System.Windows.Forms\\2.0.0.0__b77a5c561934e089\\System.Windows.Forms.dll","System.Windows.Forms.MonthCalendar");
	var var_NETHostObject = NETHost1.Host;
		var_NETHostObject.Template = "MaxSelectionCount = 1";
}
</SCRIPT>
</BODY>

7:
How can I add the Tab page, and pages inside (method 2)

<BODY onload="Init()">
<OBJECT CLASSID="clsid:FDCBA3E0-4E2F-4DC7-B073-EAA7BD7EC565" id="NETHost1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	NETHost1.AssemblyLocation = "C:\\Windows\\assembly\\GAC_MSIL\\System.Windows.Forms\\2.0.0.0__b77a5c561934e089\\System.Windows.Forms.dll";
	NETHost1.AssemblyName = "System.Windows.Forms.TabControl";
	var var_NETHostObject = NETHost1.Host;
		var var_NETHostObject1 = var_NETHostObject.Item("Dim page; page = CreateObject(`System.Windows.Forms.TabPage, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyT" +
	"oken=b77a5c561934e089`){Text = `new`};Controls.Add(page);page");
			var_NETHostObject1.Template = "Text = `Page 1`;UseVisualStyleBackColor = True";
			var_NETHostObject1.Template = "Dim c; c = CreateObject(`System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b7" +
	"7a5c561934e089`){Text=`Button 2`;Dock=1}; Controls.Add(c)";
			var_NETHostObject1.Template = "Dim c; c = CreateObject(`System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b7" +
	"7a5c561934e089`){Text=`Button 1`;Dock=1}; Controls.Add(c)";
		var var_NETHostObject2 = var_NETHostObject.Item("Dim page; page = CreateObject(`System.Windows.Forms.TabPage, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyT" +
	"oken=b77a5c561934e089`){Text = `new`};Controls.Add(page);page");
			var_NETHostObject2.Template = "Text = `Page 1`;UseVisualStyleBackColor = True";
			var_NETHostObject2.Template = "Dim c; c = CreateObject(`System.Windows.Forms.TextBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b" +
	"77a5c561934e089`){Text=`Edit 2`;Dock=1}; Controls.Add(c)";
			var_NETHostObject2.Template = "Dim c; c = CreateObject(`System.Windows.Forms.TextBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b" +
	"77a5c561934e089`){Text=`Edit 1`;Dock=1}; Controls.Add(c)";
}
</SCRIPT>
</BODY>

6:
How can I add the Tab page, and pages inside (method 1)

<BODY onload="Init()">
<OBJECT CLASSID="clsid:FDCBA3E0-4E2F-4DC7-B073-EAA7BD7EC565" id="NETHost1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	NETHost1.AssemblyLocation = "C:\\Windows\\assembly\\GAC_MSIL\\System.Windows.Forms\\2.0.0.0__b77a5c561934e089\\System.Windows.Forms.dll";
	NETHost1.AssemblyName = "System.Windows.Forms.TabControl";
	var var_NETHostObject = NETHost1.Host;
		var var_NETHostObject1 = var_NETHostObject.Item("CreateObject(`System.Windows.Forms.TabPage, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934" +
	"e089`)");
			var_NETHostObject1.Template = "Text = `Page 1`;UseVisualStyleBackColor = True";
		var_NETHostObject.SetTemplateDef("Dim page");
		var_NETHostObject.SetTemplateDef(var_NETHostObject.TemplateResult.Value);
		var_NETHostObject.Template = "Controls.Add(page)";
		var var_NETHostObject2 = var_NETHostObject.Item("CreateObject(`System.Windows.Forms.TabPage, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934" +
	"e089`)");
			var_NETHostObject2.Template = "Text = `Page 2`;UseVisualStyleBackColor = True";
		var_NETHostObject.SetTemplateDef("Dim page");
		var_NETHostObject.SetTemplateDef(var_NETHostObject.TemplateResult.Value);
		var_NETHostObject.Template = "Controls.Add(page)";
}
</SCRIPT>
</BODY>

5:
Just wondering if I can host your /NET control

<BODY onload="Init()">
<OBJECT CLASSID="clsid:FDCBA3E0-4E2F-4DC7-B073-EAA7BD7EC565" id="NETHost1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	NETHost1.AssemblyLocation = "C:\\Program Files\\Exontrol\\ExG2antt.NET\\Sample\\exontrol.exg2antt.dll";
	var var_NETHostObject = NETHost1.Host;
		var_NETHostObject.Template = "LoadXML(`http://www.exontrol.net/testing.xml`)";
}
</SCRIPT>
</BODY>

4:
How can I insert the MonthCalendar of /NET framework

<BODY onload="Init()">
<OBJECT CLASSID="clsid:FDCBA3E0-4E2F-4DC7-B073-EAA7BD7EC565" id="NETHost1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	NETHost1.BackgroundColor = 16777215;
	NETHost1.Create("C:\\Windows\\assembly\\GAC_MSIL\\System.Windows.Forms\\2.0.0.0__b77a5c561934e089\\System.Windows.Forms.dll","System.Windows.Forms.MonthCalendar");
	var var_NETHostObject = NETHost1.Host;
		var_NETHostObject.SetTemplateDef("Dim x");
		var_NETHostObject.SetTemplateDef("1/1/2001");
		var_NETHostObject.Template = "MaxSelectionCount = 1;SelectionStart = x";
}
</SCRIPT>
</BODY>

3:
How can I use the AssemblyQualifiedName property

<BODY onload="Init()">
<OBJECT CLASSID="clsid:FDCBA3E0-4E2F-4DC7-B073-EAA7BD7EC565" id="NETHost1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	NETHost1.AssemblyQualifiedName = "System.Windows.Forms.ListBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089";
	var var_NETHostObject = NETHost1.Host.Item("Items");
		var_NETHostObject.Template = "Add(2001)";
		var_NETHostObject.Template = "Add(4.1234)";
		var_NETHostObject.Template = "Add(#1/1/2001#)";
		var_NETHostObject.Template = "Add(RGB(255,0,0))";
		var_NETHostObject.Template = "Add(1);Add(2);Add(3)";
}
</SCRIPT>
</BODY>

2:
How can I use the AssemblyLocation property

<BODY onload="Init()">
<OBJECT CLASSID="clsid:FDCBA3E0-4E2F-4DC7-B073-EAA7BD7EC565" id="NETHost1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	NETHost1.AssemblyLocation = "C:\\Windows\\assembly\\GAC_MSIL\\System.Windows.Forms\\2.0.0.0__b77a5c561934e089\\System.Windows.Forms.dll";
	NETHost1.AssemblyName = "System.Windows.Forms.ListView";
	var var_NETHostObject = NETHost1.Host;
		var_NETHostObject.Template = "Items.Add(`first`)";
		var var_NETHostObject1 = var_NETHostObject.Item("CreateObject(`System.Windows.Forms.ListViewItem, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c5" +
	"61934e089`)");
			var_NETHostObject1.Template = "Text = `second`;ForeColor = RGB(255,0,0)";
		var_NETHostObject.SetTemplateDef("Dim n");
		var_NETHostObject.SetTemplateDef(var_NETHostObject.TemplateResult.Value);
		var_NETHostObject.Template = "Items.Add(n)";
		var_NETHostObject.Template = "Items.Add(`third`)";
}
</SCRIPT>
</BODY>

1:
How can I insert the PropertyGrid of /NET framework

<BODY onload="Init()">
<OBJECT CLASSID="clsid:FDCBA3E0-4E2F-4DC7-B073-EAA7BD7EC565" id="NETHost1"></OBJECT>

<SCRIPT LANGUAGE="JScript">
function Init()
{
	NETHost1.AssemblyQualifiedName = "System.Windows.Forms.PropertyGrid, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089";
	var var_NETHostObject = NETHost1.Host;
		var_NETHostObject.Template = "BackColor = RGB(255,255,255);ViewBackColor = RGB(255,255,255);LineColor = ViewBackColor";
		var_NETHostObject.SetTemplateDef("dim object");
		var_NETHostObject.SetTemplateDef(NETHost1);
		var_NETHostObject.Template = "SelectedObject = object";
}
</SCRIPT>
</BODY>