property Item.SubControl as Control
Retrieves the Control object that holds information about item's inside component.

 TypeDescription 
   Control A Control object that holds information about an inside component.  
Use the SubControl property when the item holds an ActiveX control.  The Control property specifies whether an item holds an ActiveX control. The OleEvent event is fired each time when an inside component fires an event. Use the ControlID property to specify the ActiveX identifier. Use the Create method to create the item's ActiveX control. 

The following VB sample adds the Exontrol.ChartView component:

The following C++ sample adds the Exontrol.ChartView component:

The C++ sample requires calling the #import <exorgchart.dll> to import definitions for the Exontrol.ChartView component. It generates the EXORGCHARTLib namespace where you can find all objects of the ExOrgChart component.

The following VB.NET sample adds the Exontrol.ChartView component:

The following C# sample adds the Exontrol.ChartView component:

The C# sample requires a new reference to the Exontrol's ExOrgChart component. Select the Project\Add Reference... and Select COM\ExOrgChart 1.0 Control Library. Once that the component is referred, the EXORGCHARTLib namespace is created, where we can find all objects and definitions for the component being inserted.

The ToUInt32 function converts a Color expression to OLE_COLOR:

private UInt32 ToUInt32(Color c)
{
	long i;
	i = c.R;
	i = i + 256 * c.G;
	i = i + 256 * 256 * c.B;
	return Convert.ToUInt32(i);
}

The following VFP sample adds the Exontrol.ChartView component:


Send comments on this topic.
1999-2015 Exontrol.COM, Software. All rights reserved.