22 |
How can I play animated GIF using the control
|
21 |
How can I use the Template property
|
20 |
How can I use the TemplateResult property (method 2)
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"; exontrol_NETHost.NETHostObject var_NETHostObject = exnethost1.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() }"; |
19 |
How can I use the TemplateResult property (method 1)
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"; exontrol_NETHost.NETHostObject var_NETHostObject = exnethost1.Host; var_NETHostObject.Template = "Nodes.Add(`Root 1`)"; exontrol_NETHost.NETHostObject var_NETHostObject1 = var_NETHostObject.TemplateResult; var_NETHostObject1.Template = "Nodes.Add(`Child 1`)"; var_NETHostObject1.Template = "Nodes.Add(`Child 2`)"; var_NETHostObject1.Template = "Expand()"; |
18 |
How can I find the information about the hosting control, like name, version, ...
exnethost1.AssemblyQualifiedName = "System.Windows.Forms.ListBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"; exontrol_NETHost.NETHostObject var_NETHostObject = exnethost1.Host; System.Diagnostics.Debug.Print( var_NETHostObject["ProductName"].Value.ToString() ); System.Diagnostics.Debug.Print( var_NETHostObject["ProductVersion"].Value.ToString() ); System.Diagnostics.Debug.Print( var_NETHostObject["CompanyName"].Value.ToString() ); |
17 |
How do I get the hwnd/handle of the hosting control
|
16 |
How do I get the number of arguments that an event has
// HostEvent event - The hosting control fires an event. private void exnethost1_HostEvent(object sender,exontrol.exontrol_NETHost.NETHostEvent Ev) { System.Diagnostics.Debug.Print( "Ev.Arguments.Item(\"GetType().GetProperties().Length\").AsString" ); System.Diagnostics.Debug.Print( Ev.ToString() ); } //this.exnethost1.HostEvent += new exontrol.exontrol_NETHost.exg2antt.HostEventEventHandler(this.exnethost1_HostEvent); 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
|
14 |
How can I add a TreeView
|
13 |
How can I add a ProgressBar
|
12 |
How can I add a DateTimePicker
|
11 |
How can I add CheckedListBox
|
10 |
How can I specify the list of events to be handled
// HostEvent event - The hosting control fires an event. private void exnethost1_HostEvent(object sender,exontrol.exontrol_NETHost.NETHostEvent Ev) { System.Diagnostics.Debug.Print( Ev.ToString() ); System.Diagnostics.Debug.Print( "Button " ); System.Diagnostics.Debug.Print( Ev.ToString() ); } //this.exnethost1.HostEvent += new exontrol.exontrol_NETHost.exg2antt.HostEventEventHandler(this.exnethost1_HostEvent); 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. private void exnethost1_HostEvent(object sender,exontrol.exontrol_NETHost.NETHostEvent Ev) { System.Diagnostics.Debug.Print( Ev.ToString() ); } //this.exnethost1.HostEvent += new exontrol.exontrol_NETHost.exg2antt.HostEventEventHandler(this.exnethost1_HostEvent); 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"; exontrol_NETHost.NETHostObject var_NETHostObject = exnethost1.Host; var_NETHostObject.Template = "MaxSelectionCount = 1"; |
8 |
How can I handle events withing the control
|
7 |
How can I add the Tab page, and pages inside (method 2)
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"; exontrol_NETHost.NETHostObject var_NETHostObject = exnethost1.Host; exontrol_NETHost.NETHostObject var_NETHostObject1 = var_NETHostObject["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)"; exontrol_NETHost.NETHostObject var_NETHostObject2 = var_NETHostObject["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)"; |
6 |
How can I add the Tab page, and pages inside (method 1)
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"; exontrol_NETHost.NETHostObject var_NETHostObject = exnethost1.Host; exontrol_NETHost.NETHostObject var_NETHostObject1 = var_NETHostObject["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)"; exontrol_NETHost.NETHostObject var_NETHostObject2 = var_NETHostObject["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)"; |
5 |
Just wondering if I can host your /NET control
|
4 |
How can I insert the MonthCalendar of /NET framework
|
3 |
How can I use the AssemblyQualifiedName property
|
2 |
How can I use the AssemblyLocation property
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"; exontrol_NETHost.NETHostObject var_NETHostObject = exnethost1.Host; var_NETHostObject.Template = "Items.Add(`first`)"; exontrol_NETHost.NETHostObject var_NETHostObject1 = var_NETHostObject["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`)"; |
1 |
How can I insert the PropertyGrid of /NET framework
|