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.excontextmenu.dll' reference to your project. With Excontextmenu1 With .Items With .Add("PropertiesGrid", 3).SubControl .Width = 256 .Height = 312 .Window = PropertyGrid1 End With End With End With PropertyGrid1.SelectedObject = Excontextmenu1 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.EXCONTEXTMENULib.Items var_Items = excontextmenu1.Items; exontrol.EXCONTEXTMENULib.Control var_Control = var_Items.Add("PropertiesGrid", 3, null).SubControl; var_Control.Width = 256; var_Control.Height = 312; var_Control.Window = propertyGrid1; propertyGrid1.SelectedObject = excontextmenu1; }