Hi SysNop,
Thanks for contacting Syncfusion Support.
The rounded corner appearance of the form can be obtained by handing the StatusStripEx paint event. Please make use of the below code example.
Code Example[C#]:
void statusStripEx1_Paint(object sender, PaintEventArgs e) { Point[] polypoints = RendererUtils.GetRoundedPolygon(new Rectangle(e.ClipRectangle.X, e.ClipRectangle.Y, e.ClipRectangle.Width, e.ClipRectangle.Height), 1); GraphicsPath path = new GraphicsPath(); path.AddPolygon(polypoints); Pen pen = new Pen(this.ribbonControlAdv1.MenuColor); e.Graphics.DrawPath(pen, path); e.Graphics.DrawLine(new Pen(this.BackColor), new Point(e.ClipRectangle.X, e.ClipRectangle.Y), new Point(e.ClipRectangle.X + e.ClipRectangle.Width, e.ClipRectangle.Y)); e.Graphics.DrawLine(new Pen(this.statusStripEx1.BackColor), new Point(e.ClipRectangle.X + e.ClipRectangle.Width - 1, e.ClipRectangle.Y), new Point(e.ClipRectangle.X + e.ClipRectangle.Width - 1, e.ClipRectangle.Y + e.ClipRectangle.Height - 4)); e.Graphics.DrawLine(new Pen(this.statusStripEx1.BackColor), new Point(e.ClipRectangle.X, e.ClipRectangle.Y), new Point(e.ClipRectangle.X, e.ClipRectangle.Y + e.ClipRectangle.Height - 5)); e.Graphics.DrawLine(new Pen(this.statusStripEx1.BackColor), new Point(e.ClipRectangle.X + 5, e.ClipRectangle.Y + e.ClipRectangle.Height - 1), new Point(e.ClipRectangle.X + e.ClipRectangle.Width - 5, e.ClipRectangle.Y + e.ClipRectangle.Height - 1)); } |
We have prepared the sample for your reference and it can be downloaded from here.
Sample : https://www.syncfusion.com/downloads/support/forum/121205/ze/RibbonBorder606581405
Also, refer to below screenshot for further understanding.
Screenshot:
Regards,
Senthil