GM
Gowri Manohari D
Syncfusion Team
August 4, 2009 04:47 AM UTC
Hi Doug,
Thank you for choosing Syncfusion products.
We have analyzed your requirement. Diagram control supports separate Node type "ControlNode" in order to add windows controls inside of it. ControlNode is a node used for hosting the windows controls inside of it. You can accomplish your task via this ControlNode.
The below is the sample code for adding Windows Forms TextBox in ControlNode
TextBox txt = new TextBox();
Syncfusion.Windows.Forms.Diagram.ControlNode c=new ControlNode (txt,new RectangleF (0,0,txt.Width,txt.Height));
c.ActivateStyle=ActivateStyle.ClickPassThrough;
diagram1.Model.AppendChild(c);
For more details about ControlNode please refer the sample from DashBoard->Windows Samples->Diagram Samples->Editable Diagrams->Controls Galore
Regards,
Gowri
AC
Aubyn Crawford
October 19, 2010 10:17 PM UTC
Hi,
I have used the ControlNode successfully (including the serliazation you use in your example) - BUT this does not appear to still work inside a group. (The Controls Galore demo's inheritance from ControlNode, but not inclusion in a group).
I can select the ControlNode as part of the group, but the mouse events never appear to be transmitted into the control hosted in the ControlNode. Is there something simple I have missed?
Thanks,