تقييم الموضوع :
  • 0 أصوات - بمعدل 0
  • 1
  • 2
  • 3
  • 4
  • 5
[سؤال] عايزه كود يقلب البتون 90 أو اي درجه
#1
السلام عليكم ورحمه الله وبركاته
عايزه كود يقلب البتون 90 أو اي درجه انا عايزها
الرد }}}
تم الشكر بواسطة: فطومة , فطومة
#2
رد ياجماعه
الرد }}}
تم الشكر بواسطة:
#3
الاخت منه
ماتطلبينه يصعب تحقيقه (ليس مستحيلا) في بيئة مشاريع Windows Forms لكنه بغاية البساطة باستخدام بيئة WPF
لكن لو لم تريدين صنع برنامجك باستخدام WPF فقومي بالبحث باستخدام العبارة "rotate button vb.net"

او اطلعي على الرابط التالي
https://www.codeproject.com/Questions/59...plusvb-net

الرد }}}
#4
شكرا للرد  الجميل بارك الله فيكم














Kodi nox
الرد }}}
تم الشكر بواسطة: فطومة
#5
كود :
string text2 = "Use TextFormatFlags and Rectangle objects to"
+ " center text in a rectangle.";

using (Font font2 = new Font("Arial", 12, FontStyle.Bold, GraphicsUnit.Point))
{
Rectangle rect2 = new Rectangle(150, 10, 130, 140);

// Create a TextFormatFlags with word wrapping, horizontal center and
// vertical center specified.
TextFormatFlags flags = TextFormatFlags.HorizontalCenter |
TextFormatFlags.VerticalCenter | TextFormatFlags.WordBreak;

// Draw the text and the surrounding rectangle.
TextRenderer.DrawText(e.Graphics, text2, font2, rect2, Color.Blue, flags);
e.Graphics.DrawRectangle(Pens.Black, rect2);
}
--------
المثال الثاني :
string text1 = "Use StringFormat and Rectangle objects to"
+ " center text in a rectangle.";
using (Font font1 = new Font("Arial", 12, FontStyle.Bold, GraphicsUnit.Point))
{
Rectangle rect1 = new Rectangle(10, 10, 130, 140);

// Create a StringFormat object with the each line of text, and the block
// of text centered on the page.
StringFormat stringFormat = new StringFormat();
stringFormat.Alignment = StringAlignment.Center;
stringFormat.LineAlignment = StringAlignment.Center;

// Draw the text and the surrounding rectangle.
e.Graphics.DrawString(text1, font1, Brushes.Blue, rect1, stringFormat);
e.Graphics.DrawRectangle(Pens.Black, rect1);
}
الرد }}}
تم الشكر بواسطة:


التنقل السريع :


يقوم بقرائة الموضوع: بالاضافة الى ( 1 ) ضيف كريم