|
Recommended approach - exe will perform automatic configuration.
Please find the patch setup from below location:
Patch link :
Please find the patch assemblies alone from below location:
Assemblies Link:
Nuget link:
|
|
Recommended approach - exe will perform automatic configuration.
Please find the patch setup from below location:
Patch link :
Please find the patch assemblies alone from below location:
Assemblies Link: https://syncfusion.com/Installs/support/patch/19.1.0.54/1168347/F163896/SyncfusionPatch_19.1.0.54_1168347_4202021025905859_F163896.zip
|
|
private void SplashForm_Paint(object sender, PaintEventArgs e)
{
//Rounded rectangle corder radius. The radius must be less than 10.
int radius = 5;
e.Graphics.SmoothingMode = SmoothingMode.AntiAlias;
GraphicsUnit unit = GraphicsUnit.Pixel;
RectangleF rect1 = this.splashPanel1.BackgroundImage.GetBounds(ref unit);
//RectangleF rect1 = this.splashPanel1.SplashForm.Bounds;
Rectangle rect = new Rectangle((int)rect1.X + 10,
(int)rect1.Y + 10,
(int)this.splashPanel1.Bounds.Width - 35,
(int)rect1.Height - 10);
this.splashPanel1.SplashForm.Region = new Region(GetRoundedRect(rect, radius));
}
private GraphicsPath GetRoundedRect(Rectangle bounds, int radius)
{
int diameter = radius * 2;
Size size = new Size(diameter, diameter);
Rectangle arc = new Rectangle(bounds.Location, size);
GraphicsPath path = new GraphicsPath();
if (radius == 0)
{
path.AddRectangle(bounds);
return path;
}
// top left arc
path.AddArc(arc, 180, 90);
// top right arc
arc.X = bounds.Right - diameter;
path.AddArc(arc, 270, 90);
// bottom right arc
arc.Y = bounds.Bottom - diameter;
path.AddArc(arc, 0, 90);
// bottom left arc
arc.X = bounds.Left;
path.AddArc(arc, 90, 90);
path.CloseFigure();
return path;
}
|