We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Diagram Control Width

Thread ID:





82083 Jun 1,2009 07:01 AM UTC Jun 1,2009 01:03 PM UTC WinForms 1
Tags: Diagram
Murali Krishna
Asked On June 1, 2009 07:01 AM UTC


I am creating a rectangle as follows:

_workRectangle = new Syncfusion.Windows.Forms.Diagram.Rectangle(x, y, (float)_width, (float)_height);
_workRectangle.EditStyle.AllowMove = false;
_workRectangle.EditStyle.AllowResize = false;
_workRectangle.EditStyle.AllowRotate = false;
_workRectangle.EditStyle.HidePinPoint = true;
_workRectangle.EditStyle.HideRotationHandle = true;
_workRectangle.LineStyle.LineWidth = 0.5f;

Now my questions are:

1. When I select the rectangle over diagram control, it is drawing the control points. I dont want these control points to be drawn. How can I do this?

2. the Width property for the diagramcontrol is not changing.
For e.g if the initial width of the diagram control is 350.\, even after executing the following statement, the Width of the diagram Control doesn't change:

this.diagram1.Width = 500;

Please Respond Soon,
Murali Krishna

Gowri Manohari D [Syncfusion]
Replied On June 1, 2009 01:03 PM UTC

Hi Murali,

Thanks for choosing Syncfusion Products.

1.For your first requirement please refer the below code.

_workRectangle.EditStyle.AllowSelect =false ;

2.For your second requirement Diagram.Width here works fine.We added the below code in our project.It will reflect at runtime.Intially diagram width is 350 after i changed to 700.

this.diagram1.Width = 700;

This code works fine here.Please let me know the code you used.

Thanks & Regards,


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon