J.
J.Nagarajan
Syncfusion Team
July 27, 2007 06:56 PM UTC
Hi GA,
Thanks for the update.
1. If you want to change the back color of the Windows control to Transparent then you could not change it to transparent. You can test this in an simple application. You can add a button control in a form and change the button's back color to transparent then it could not be changed to transparent. Similarly you can set transparent color to the control placed on a diagram. If you want to change the back color of the control node then please refer to the following code snippet
Button btn = new Button();
btn.Text = "Double Click to activate me";
btn.Click += new EventHandler( btn_Click );
ControlNode ctrlnode = new ControlNode( btn, new RectangleF( 100, 200, 150, 50 ) );
ctrlnode.HostingControl.BackColor = Color.Red;
this.diagram1.Model.AppendChild( ctrlnode );
2. If you want to prevent the selection of the connector then you can set its AllowSelect property to false. Please refer to the folloing code.
lineConnector.EditStyle.AllowSelect=false;
Please let me know if you have any questions.
Thanks,
Nagaraj