Welcome to Sign in | Help

Re: Background image to a button Visual C#

  •  05-23-2008, 6:51 PM

    Re: Background image to a button Visual C#

    Încearcă ceva de genul:

            protected override void OnPaint(PaintEventArgs e)
            {

                base.OnPaint(e);

                string text2 = " Biblioteca";
                using (Font font2 = new Font("Arial", 11, FontStyle.Bold))
                {
                    Rectangle rect2 = new Rectangle(0, 0, 170, 30);
                    e.Graphics.DrawRectangle(new Pen(Color.Black), rect2);

                    Rectangle rect1 = new Rectangle(0, 7, 170, 15);
                    e.Graphics.DrawString(text2, font2, new SolidBrush(Color.Black), rect1);
                }               
            }

    Răzvan

    PS. E prima dată când scriu cod C# pentru un Smart Device...
View Complete Thread
Powered by Community Server (Commercial Edition), by Telligent Systems