16-01-14, 02:53 AM
ماتريد القيام به يعبر بالمصطلح "Rounded corner"
وطبعا توجد دالة API تقوم بفعل ذلك :-
وطريقة الاستخدام (في حدثForm_load مثلا) :-
علما بان الرقم 11 يعبر عن حدة انحناء الزوايا
موفق
وطبعا توجد دالة API تقوم بفعل ذلك :-
PHP كود :
Private Declare Function CreateRoundRectRgn Lib "Gdi32.dll" Alias "CreateRoundRectRgn"
(
ByVal nLeftRect As Integer,
ByVal nTopRect As Integer,
ByVal nRightRect As Integer,
ByVal nBottomRect As Integer,
ByVal nWidthEllipse As Integer,
ByVal nHeightEllipse As Integer
) As IntPtr
وطريقة الاستخدام (في حدثForm_load مثلا) :-
PHP كود :
this.Region = System.Drawing.Region.FromHrgn(CreateRoundRectRgn(0, 0, this.Width, this.Height, 11, 11));
علما بان الرقم 11 يعبر عن حدة انحناء الزوايا
موفق

