Type | Description | |||
Variant | A Long expression that specifies the handle of the Window to be hosted by the Item. |
The following VB/NET sample displays the form's PropertyGrid control to an Item ( /NET version ):
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ' Add 'exontrol.extoolbar.dll' reference to your project. With Extoolbar1 With .Items With .Add("PropertiesGrid", 3).SubControl .Width = 256 .Height = 312 .Window = PropertyGrid1 End With End With End With PropertyGrid1.SelectedObject = Extoolbar1 End Sub
The following C# sample displays the form's PropertyGrid control to an Item ( /NET version ):
private void Form1_Load(object sender, EventArgs e) { exontrol.EXTOOLBARLib.Items var_Items = extoolbar1.Items; exontrol.EXTOOLBARLib.Control var_Control = var_Items.Add("PropertiesGrid", 3, null).SubControl; var_Control.Width = 256; var_Control.Height = 312; var_Control.Window = propertyGrid1; propertyGrid1.SelectedObject = extoolbar1; }