22
How can I play animated GIF using the control

public void init()
{
	;

	super();

	exnethost1.Create("C:\\Windows\\assembly\\GAC_MSIL\\System.Windows.Forms\\2.0.0.0__b77a5c561934e089\\System.Windows.Forms.dll","System.Windows.Forms.Label");
	exnethost1.Host().Template("Image = LoadPicture(`C:\\Program Files (x86)\\Exontrol\\ExNETHost\\Sample\\wait.gif`)");
}
21
How can I use the Template property
public void init()
{
	;

	super();

	exnethost1.AssemblyLocation("C:\\Windows\\assembly\\GAC_MSIL\\System.Windows.Forms\\2.0.0.0__b77a5c561934e089\\System.Windows.Forms.dll");
	exnethost1.AssemblyName("System.Windows.Forms.TreeView");
	exnethost1.Host().Template("Nodes { Add(`Root 1`).Nodes { Add(`Child 1`); Add(`Child 2`) }  }");
}
20
How can I use the TemplateResult property (method 2)
public void init()
{
	COM com_NETHostObject,com_NETHostObject1;
	anytype var_NETHostObject,var_NETHostObject1;
	;

	super();

	exnethost1.AssemblyLocation("C:\\Windows\\assembly\\GAC_MSIL\\System.Windows.Forms\\2.0.0.0__b77a5c561934e089\\System.Windows.Forms.dll");
	exnethost1.AssemblyName("System.Windows.Forms.TreeView");
	var_NETHostObject = exnethost1.Host(); com_NETHostObject = var_NETHostObject;
		com_NETHostObject.Template("Nodes.Add(`Root 1`){ BackColor = RGB(255,0,0);ForeColor = RGB(255,255,255) }");
		var_NETHostObject1 = COM::createFromObject(com_NETHostObject.TemplateResult()); com_NETHostObject1 = var_NETHostObject1;
		com_NETHostObject1.Template("Nodes{ Add(`Child 1`); Add(`Child 2`) }; Expand() }");
}
19
How can I use the TemplateResult property (method 1)
public void init()
{
	COM com_NETHostObject,com_NETHostObject1;
	anytype var_NETHostObject,var_NETHostObject1;
	;

	super();

	exnethost1.AssemblyLocation("C:\\Windows\\assembly\\GAC_MSIL\\System.Windows.Forms\\2.0.0.0__b77a5c561934e089\\System.Windows.Forms.dll");
	exnethost1.AssemblyName("System.Windows.Forms.TreeView");
	var_NETHostObject = exnethost1.Host(); com_NETHostObject = var_NETHostObject;
		com_NETHostObject.Template("Nodes.Add(`Root 1`)");
		var_NETHostObject1 = com_NETHostObject.TemplateResult(); com_NETHostObject1 = var_NETHostObject1;
			com_NETHostObject1.Template("Nodes.Add(`Child 1`)");
			com_NETHostObject1.Template("Nodes.Add(`Child 2`)");
			com_NETHostObject1.Template("Expand()");
}
18
How can I find the information about the hosting control, like name, version, ...
public void init()
{
	COM com_NETHostObject;
	anytype var_NETHostObject;
	;

	super();

	exnethost1.AssemblyQualifiedName("System.Windows.Forms.ListBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089");
	var_NETHostObject = exnethost1.Host(); com_NETHostObject = var_NETHostObject;
		print( com_NETHostObject.Item("ProductName").Value() );
		print( com_NETHostObject.Item("ProductVersion").Value() );
		print( com_NETHostObject.Item("CompanyName").Value() );
}
17
How do I get the hwnd/handle of the hosting control
public void init()
{
	;

	super();

	exnethost1.AssemblyLocation("C:\\Windows\\assembly\\GAC_MSIL\\System.Windows.Forms\\2.0.0.0__b77a5c561934e089\\System.Windows.Forms.dll");
	print( exnethost1.Host().Item("Handle").AsInt() );
}
16
How do I get the number of arguments that an event has
// HostEvent event - The hosting control fires an event.
void onEvent_HostEvent(COM   _Ev)
{
	;
	print( "Ev.Arguments.Item(\"GetType().GetProperties().Length\").AsString" );
	print( _Ev );
}

public void init()
{
	;

	super();

	exnethost1.AssemblyLocation("C:\\Windows\\assembly\\GAC_MSIL\\System.Windows.Forms\\2.0.0.0__b77a5c561934e089\\System.Windows.Forms.dll");
}
15
How can I change the control's background color, as BackgroundColor seems to have no effect

public void init()
{
	COM com_NETHostObject,com_NETHostObject1,com_Object;
	anytype var_NETHostObject,var_NETHostObject1,var_Object;
	;

	super();

	exnethost1.AssemblyLocation("C:\\Windows\\assembly\\GAC_MSIL\\System.Windows.Forms\\2.0.0.0__b77a5c561934e089\\System.Windows.Forms.dll");
	exnethost1.AssemblyName("System.Windows.Forms.TreeView");
	var_NETHostObject = exnethost1.Host(); com_NETHostObject = var_NETHostObject;
		com_NETHostObject.Template("BackColor = RGB(240,240,240)");
		var_NETHostObject1 = com_NETHostObject.Item("Nodes.Add(`Root`)"); com_NETHostObject1 = var_NETHostObject1;
			var_NETHostObject = COM::createFromObject(com_NETHostObject1.Item("Nodes.Add(`Child 1`)")); com_NETHostObject = var_NETHostObject;
			var_NETHostObject1 = COM::createFromObject(com_NETHostObject1.Item("Nodes.Add(`Child 2`)"));
			var_Object = COM::createFromObject(com_NETHostObject1.Item("Expand()")); com_Object = var_Object;
}
14
How can I add a TreeView

public void init()
{
	COM com_NETHostObject,com_NETHostObject1,com_NETHostObject2,com_NETHostObject3,com_NETHostObject4,com_NETHostObject5,com_NETHostObject6,com_NETHostObject7,com_Object,com_Object1;
	anytype var_NETHostObject,var_NETHostObject1,var_NETHostObject2,var_NETHostObject3,var_NETHostObject4,var_NETHostObject5,var_NETHostObject6,var_NETHostObject7,var_Object,var_Object1;
	;

	super();

	exnethost1.AssemblyLocation("C:\\Windows\\assembly\\GAC_MSIL\\System.Windows.Forms\\2.0.0.0__b77a5c561934e089\\System.Windows.Forms.dll");
	exnethost1.AssemblyName("System.Windows.Forms.TreeView");
	var_NETHostObject = exnethost1.Host(); com_NETHostObject = var_NETHostObject;
		var_NETHostObject1 = com_NETHostObject.Item("Nodes.Add(`Root 1`)"); com_NETHostObject1 = var_NETHostObject1;
			var_NETHostObject = COM::createFromObject(com_NETHostObject1.Item("Nodes.Add(`Child 1`)")); com_NETHostObject = var_NETHostObject;
			var_NETHostObject2 = com_NETHostObject1.Item("Nodes.Add(`Child 2`)"); com_NETHostObject2 = var_NETHostObject2;
				var_NETHostObject1 = COM::createFromObject(com_NETHostObject2.Item("Nodes.Add(`Sub-Child 2.1`)"));
				var_NETHostObject2 = COM::createFromObject(com_NETHostObject2.Item("Nodes.Add(`Sub-Child 2.2`)"));
				var_NETHostObject3 = COM::createFromObject(com_NETHostObject2.Item("Nodes.Add(`Sub-Child 2.3`)")); com_NETHostObject3 = var_NETHostObject3;
				var_Object = COM::createFromObject(com_NETHostObject2.Item("Expand()")); com_Object = var_Object;
			var_NETHostObject4 = COM::createFromObject(com_NETHostObject1.Item("Nodes.Add(`Child 3`)")); com_NETHostObject4 = var_NETHostObject4;
			var_Object1 = COM::createFromObject(com_NETHostObject1.Item("Expand()")); com_Object1 = var_Object1;
		var_NETHostObject5 = com_NETHostObject.Item("Nodes.Add(`Root 2`)"); com_NETHostObject5 = var_NETHostObject5;
			var_NETHostObject5 = COM::createFromObject(com_NETHostObject5.Item("Nodes.Add(`Child 1`)"));
			var_NETHostObject6 = COM::createFromObject(com_NETHostObject5.Item("Nodes.Add(`Child 2`)")); com_NETHostObject6 = var_NETHostObject6;
			var_NETHostObject7 = COM::createFromObject(com_NETHostObject5.Item("Nodes.Add(`Child 3`)")); com_NETHostObject7 = var_NETHostObject7;
}
13
How can I add a ProgressBar

public void init()
{
	COM com_NETHostObject;
	anytype var_NETHostObject;
	;

	super();

	exnethost1.AssemblyLocation("C:\\Windows\\assembly\\GAC_MSIL\\System.Windows.Forms\\2.0.0.0__b77a5c561934e089\\System.Windows.Forms.dll");
	exnethost1.AssemblyName("System.Windows.Forms.ProgressBar");
	var_NETHostObject = exnethost1.Host(); com_NETHostObject = var_NETHostObject;
		com_NETHostObject.SetTemplateDef("Dim percent");
		com_NETHostObject.SetTemplateDef(COMVariant::createFromInt(50));
		com_NETHostObject.Template("Value = percent");
}
12
How can I add a DateTimePicker

public void init()
{
	COM com_NETHostObject;
	anytype var_NETHostObject;
	;

	super();

	exnethost1.AssemblyLocation("C:\\Windows\\assembly\\GAC_MSIL\\System.Windows.Forms\\2.0.0.0__b77a5c561934e089\\System.Windows.Forms.dll");
	exnethost1.AssemblyName("System.Windows.Forms.DateTimePicker");
	var_NETHostObject = exnethost1.Host(); com_NETHostObject = var_NETHostObject;
		com_NETHostObject.SetTemplateDef("Dim date");
		com_NETHostObject.SetTemplateDef(COMVariant::createFromDate(str2Date("1/1/2001",213)));
		com_NETHostObject.Template("Value = date");
}
11
How can I add CheckedListBox

public void init()
{
	COM com_NETHostObject;
	anytype var_NETHostObject;
	;

	super();

	exnethost1.AssemblyLocation("C:\\Windows\\assembly\\GAC_MSIL\\System.Windows.Forms\\2.0.0.0__b77a5c561934e089\\System.Windows.Forms.dll");
	exnethost1.AssemblyName("System.Windows.Forms.CheckedListBox");
	var_NETHostObject = exnethost1.Host(); com_NETHostObject = var_NETHostObject;
		com_NETHostObject.Template("FormattingEnabled = True");
		com_NETHostObject.Template("Items.Add(`Check 1`)");
		com_NETHostObject.Template("Items.Add(`Check 2`,True)");
}
10
How can I specify the list of events to be handled
// HostEvent event - The hosting control fires an event.
void onEvent_HostEvent(COM   _Ev)
{
	;
	print( _Ev );
	print( "Button " );
	print( _Ev );
}

public void init()
{
	;

	super();

	exnethost1.BackgroundColor(16777215);
	exnethost1.HostEvents("MouseUp MouseDown");
	exnethost1.Create("C:\\Windows\\assembly\\GAC_MSIL\\System.Windows.Forms\\2.0.0.0__b77a5c561934e089\\System.Windows.Forms.dll","System.Windows.Forms.MonthCalendar");
	exnethost1.Host().Template("MaxSelectionCount = 1");
}
9
Is it possible to handle only a specific event
// HostEvent event - The hosting control fires an event.
void onEvent_HostEvent(COM   _Ev)
{
	;
	print( _Ev );
}

public void init()
{
	COM com_NETHostObject;
	anytype var_NETHostObject;
	;

	super();

	exnethost1.BackgroundColor(16777215);
	exnethost1.Create("C:\\Windows\\assembly\\GAC_MSIL\\System.Windows.Forms\\2.0.0.0__b77a5c561934e089\\System.Windows.Forms.dll","System.Windows.Forms.MonthCalendar");
	exnethost1.HostEvents("DateSelected");
	var_NETHostObject = exnethost1.Host(); com_NETHostObject = var_NETHostObject;
		com_NETHostObject.Template("MaxSelectionCount = 1");
}
8
How can I handle events withing the control
// HostEvent event - The hosting control fires an event.
void onEvent_HostEvent(COM   _Ev)
{
	;
	print( _Ev );
}

public void init()
{
	COM com_NETHostObject;
	anytype var_NETHostObject;
	;

	super();

	exnethost1.BackgroundColor(16777215);
	exnethost1.Create("C:\\Windows\\assembly\\GAC_MSIL\\System.Windows.Forms\\2.0.0.0__b77a5c561934e089\\System.Windows.Forms.dll","System.Windows.Forms.MonthCalendar");
	var_NETHostObject = exnethost1.Host(); com_NETHostObject = var_NETHostObject;
		com_NETHostObject.Template("MaxSelectionCount = 1");
}
7
How can I add the Tab page, and pages inside (method 2)

public void init()
{
	COM com_NETHostObject,com_NETHostObject1,com_NETHostObject2;
	anytype var_NETHostObject,var_NETHostObject1,var_NETHostObject2;
	str var_s,var_s1,var_s2,var_s3,var_s4,var_s5,var_s6,var_s7;
	;

	super();

	exnethost1.AssemblyLocation("C:\\Windows\\assembly\\GAC_MSIL\\System.Windows.Forms\\2.0.0.0__b77a5c561934e089\\System.Windows.Forms.dll");
	exnethost1.AssemblyName("System.Windows.Forms.TabControl");
	var_NETHostObject = exnethost1.Host(); com_NETHostObject = var_NETHostObject;
		var_s = "Dim page; page = CreateObject(`System.Windows.Forms.TabPage, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyTo";
		var_s = var_s + "ken=b77a5c561934e089`){Text = `new`};Controls.Add(page);page";
		var_s1 = "Dim page; page = CreateObject(`System.Windows.Forms.TabPage, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyTo";
		var_s1 = var_s1 + "ken=b77a5c561934e089`){Text = `new`};Controls.Add(page);page";
		var_NETHostObject1 = com_NETHostObject.Item(var_s); com_NETHostObject1 = var_NETHostObject1;
			com_NETHostObject1.Template("Text = `Page 1`;UseVisualStyleBackColor = True");
			var_s2 = "Dim c; c = CreateObject(`System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77";
			var_s2 = var_s2 + "a5c561934e089`){Text=`Button 2`;Dock=1}; Controls.Add(c)";
			com_NETHostObject1.Template(var_s2);
			var_s3 = "Dim c; c = CreateObject(`System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77";
			var_s3 = var_s3 + "a5c561934e089`){Text=`Button 1`;Dock=1}; Controls.Add(c)";
			com_NETHostObject1.Template(var_s3);
		var_s4 = "Dim page; page = CreateObject(`System.Windows.Forms.TabPage, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyTo";
		var_s4 = var_s4 + "ken=b77a5c561934e089`){Text = `new`};Controls.Add(page);page";
		var_s5 = "Dim page; page = CreateObject(`System.Windows.Forms.TabPage, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyTo";
		var_s5 = var_s5 + "ken=b77a5c561934e089`){Text = `new`};Controls.Add(page);page";
		var_NETHostObject2 = com_NETHostObject.Item(var_s4); com_NETHostObject2 = var_NETHostObject2;
			com_NETHostObject2.Template("Text = `Page 1`;UseVisualStyleBackColor = True");
			var_s6 = "Dim c; c = CreateObject(`System.Windows.Forms.TextBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b7";
			var_s6 = var_s6 + "7a5c561934e089`){Text=`Edit 2`;Dock=1}; Controls.Add(c)";
			com_NETHostObject2.Template(var_s6);
			var_s7 = "Dim c; c = CreateObject(`System.Windows.Forms.TextBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b7";
			var_s7 = var_s7 + "7a5c561934e089`){Text=`Edit 1`;Dock=1}; Controls.Add(c)";
			com_NETHostObject2.Template(var_s7);
}
6
How can I add the Tab page, and pages inside (method 1)

public void init()
{
	COM com_NETHostObject,com_NETHostObject1,com_NETHostObject2;
	anytype var_NETHostObject,var_NETHostObject1,var_NETHostObject2;
	str var_s,var_s1,var_s2,var_s3;
	;

	super();

	exnethost1.AssemblyLocation("C:\\Windows\\assembly\\GAC_MSIL\\System.Windows.Forms\\2.0.0.0__b77a5c561934e089\\System.Windows.Forms.dll");
	exnethost1.AssemblyName("System.Windows.Forms.TabControl");
	var_NETHostObject = exnethost1.Host(); com_NETHostObject = var_NETHostObject;
		var_s = "CreateObject(`System.Windows.Forms.TabPage, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e";
		var_s = var_s + "089`)";
		var_s1 = "CreateObject(`System.Windows.Forms.TabPage, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e";
		var_s1 = var_s1 + "089`)";
		var_NETHostObject1 = com_NETHostObject.Item(var_s); com_NETHostObject1 = var_NETHostObject1;
			com_NETHostObject1.Template("Text = `Page 1`;UseVisualStyleBackColor = True");
		com_NETHostObject.SetTemplateDef("Dim page");
		com_NETHostObject.SetTemplateDef(com_NETHostObject.TemplateResult().Value());
		com_NETHostObject.Template("Controls.Add(page)");
		var_s2 = "CreateObject(`System.Windows.Forms.TabPage, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e";
		var_s2 = var_s2 + "089`)";
		var_s3 = "CreateObject(`System.Windows.Forms.TabPage, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e";
		var_s3 = var_s3 + "089`)";
		var_NETHostObject2 = com_NETHostObject.Item(var_s2); com_NETHostObject2 = var_NETHostObject2;
			com_NETHostObject2.Template("Text = `Page 2`;UseVisualStyleBackColor = True");
		com_NETHostObject.SetTemplateDef("Dim page");
		com_NETHostObject.SetTemplateDef(com_NETHostObject.TemplateResult().Value());
		com_NETHostObject.Template("Controls.Add(page)");
}
5
Just wondering if I can host your /NET control

public void init()
{
	COM com_NETHostObject;
	anytype var_NETHostObject;
	;

	super();

	exnethost1.AssemblyLocation("C:\\Program Files\\Exontrol\\ExG2antt.NET\\Sample\\exontrol.exg2antt.dll");
	var_NETHostObject = exnethost1.Host(); com_NETHostObject = var_NETHostObject;
		com_NETHostObject.Template("LoadXML(`http://www.exontrol.net/testing.xml`)");
}
4
How can I insert the MonthCalendar of /NET framework

public void init()
{
	COM com_NETHostObject;
	anytype var_NETHostObject;
	;

	super();

	exnethost1.BackgroundColor(16777215);
	exnethost1.Create("C:\\Windows\\assembly\\GAC_MSIL\\System.Windows.Forms\\2.0.0.0__b77a5c561934e089\\System.Windows.Forms.dll","System.Windows.Forms.MonthCalendar");
	var_NETHostObject = exnethost1.Host(); com_NETHostObject = var_NETHostObject;
		com_NETHostObject.SetTemplateDef("Dim x");
		com_NETHostObject.SetTemplateDef(COMVariant::createFromDate(str2Date("1/1/2001",213)));
		com_NETHostObject.Template("MaxSelectionCount = 1;SelectionStart = x");
}
3
How can I use the AssemblyQualifiedName property

public void init()
{
	COM com_NETHostObject;
	anytype var_NETHostObject;
	;

	super();

	exnethost1.AssemblyQualifiedName("System.Windows.Forms.ListBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089");
	var_NETHostObject = COM::createFromObject(exnethost1.Host()).Item("Items"); com_NETHostObject = var_NETHostObject;
		com_NETHostObject.Template("Add(2001)");
		com_NETHostObject.Template("Add(4.1234)");
		com_NETHostObject.Template("Add(#1/1/2001#)");
		com_NETHostObject.Template("Add(RGB(255,0,0))");
		com_NETHostObject.Template("Add(1);Add(2);Add(3)");
}
2
How can I use the AssemblyLocation property

public void init()
{
	COM com_NETHostObject,com_NETHostObject1;
	anytype var_NETHostObject,var_NETHostObject1;
	str var_s,var_s1;
	;

	super();

	exnethost1.AssemblyLocation("C:\\Windows\\assembly\\GAC_MSIL\\System.Windows.Forms\\2.0.0.0__b77a5c561934e089\\System.Windows.Forms.dll");
	exnethost1.AssemblyName("System.Windows.Forms.ListView");
	var_NETHostObject = exnethost1.Host(); com_NETHostObject = var_NETHostObject;
		com_NETHostObject.Template("Items.Add(`first`)");
		var_s = "CreateObject(`System.Windows.Forms.ListViewItem, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c56";
		var_s = var_s + "1934e089`)";
		var_s1 = "CreateObject(`System.Windows.Forms.ListViewItem, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c56";
		var_s1 = var_s1 + "1934e089`)";
		var_NETHostObject1 = com_NETHostObject.Item(var_s); com_NETHostObject1 = var_NETHostObject1;
			com_NETHostObject1.Template("Text = `second`;ForeColor = RGB(255,0,0)");
		com_NETHostObject.SetTemplateDef("Dim n");
		com_NETHostObject.SetTemplateDef(com_NETHostObject.TemplateResult().Value());
		com_NETHostObject.Template("Items.Add(n)");
		com_NETHostObject.Template("Items.Add(`third`)");
}
1
How can I insert the PropertyGrid of /NET framework

public void init()
{
	COM com_NETHostObject;
	anytype var_NETHostObject;
	;

	super();

	exnethost1.AssemblyQualifiedName("System.Windows.Forms.PropertyGrid, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089");
	var_NETHostObject = exnethost1.Host(); com_NETHostObject = var_NETHostObject;
		com_NETHostObject.Template("BackColor = RGB(255,255,255);ViewBackColor = RGB(255,255,255);LineColor = ViewBackColor");
		com_NETHostObject.SetTemplateDef("dim object");
		com_NETHostObject.SetTemplateDef(exnethost1);
		com_NETHostObject.Template("SelectedObject = object");
}