13-09-19, 03:50 AM
السلام عليكم اخي الكريم
نفس كود اخي ربيع جزاه الله كل الخير مع تغيير وزيادة استدارة الزوايا وتحوبل الكود الى #c
استدعي المكتبات التالية:
ثم هذا الكود في فورم لود
نفس كود اخي ربيع جزاه الله كل الخير مع تغيير وزيادة استدارة الزوايا وتحوبل الكود الى #c
استدعي المكتبات التالية:
كود :
using System.Drawing;
using System.Drawing.Drawing2D;ثم هذا الكود في فورم لود
كود :
private void Form1_Load(object sender, EventArgs e)
{
this.FormBorderStyle = FormBorderStyle.None;
this.Height = 300;
this.Width = 400;
System.Drawing.Drawing2D.GraphicsPath p = new System.Drawing.Drawing2D.GraphicsPath();
p.StartFigure();
p.AddArc(new Rectangle(0, 0, 40, 40), 180F, 90F);
p.AddLine(10, 0, this.Width - 10, 0);
p.AddArc(new Rectangle(this.Width - 40, 0, 40, 40), -90F, 90F);
p.AddLine(this.Width, 10, this.Width, this.Height - 10);
p.AddArc(new Rectangle(this.Width - 40, this.Height - 40, 40, 40), 0F, 90F);
p.AddLine(this.Width - 10, this.Height, 10, this.Height);
p.AddArc(new Rectangle(0, this.Height - 40, 40, 40), 90F, 90F);
p.CloseFigure();
this.Region = new Region(p);
}اعمل الخير وأجرك لا تنتظره فالله خير من إليك يرده
البرمجة ليست مجرد كود بل هي منهج تفكير منطقي لحل المشكلات
