Example 2
- Last UpdatedDec 01, 2022
- 1 minute read
if( WindowManager.Instance.MainForm.ActiveMdiChild != null )
{
_activeCtrl = WindowManager.Instance.MainForm.ActiveMdiChild.ActiveControl;
if(_activeCtrl != null && !(_activeCtrl is AxDrawingControl))
{
foreach(System.Windows.Forms.Control ctrl in
WindowManager.Instance.MainForm.ActiveMdiChild.ActiveControl.Controls)
{
if(ctrl is AxDrawingControl)
{
_activeCtrl = ctrl;
break;
}
}
}
}
When the Visio.Application instance is obtained from the Drawing Control it is possible to invoke any of the Visio API methods available to customize the drawing.