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

Drawing a node with rounded edges

Thread ID:





70809 Jan 2,2008 05:07 PM UTC Jan 3,2008 11:43 AM UTC WinForms 1
Tags: Diagram
Ernesto Moscoso Cam
Asked On January 2, 2008 05:07 PM UTC


I would like to know if a square (or rectangular) node can be drawn having rounded edges.

If the node happens to be a ControlNode with a control inside, would it work?

Thanks a lot.

SubhaSheela R [Syncfusion]
Replied On January 3, 2008 11:43 AM UTC

Hi Emoscosocam,

Thank you for using Syncfusion products.

1. Drawing a node with rounded edges:

A node with rounded edges can be created by using the class RoundRect. Please refer the below code snippet to achieve this:

Syncfusion.Windows.Forms.Diagram.RoundRect rr = new Syncfusion.Windows.Forms.Diagram.RoundRect(100, 100, 200, 100, MeasureUnits.Pixel);
rr.CurveRadius = 20f;

Please refer to the below sample that illustrates the same:


2. If the node happens to be a ControlNode with a control inside, would it work?

Yes. You can use the controls inside the ControlNode. Please refer to the below browser sample to achieve this:

{Installation Drive}\Documents and Settings\{UserName}\My Documents\Syncfusion\EssentialStudio\\Windows\ Diagram.Windows\Samples\2.0\Technology\ControlsGalore\cs

Please let me know if you have any questions.

Subhasheela R


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

or the page will be automatically redirected to 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