Graphics-Draw a string


 

private void button1_Click(object sender, EventArgs e)

{

    using (Graphics myDrawGrapphicString = this.CreateGraphics())

    {

        myDrawGrapphicString.DrawString("Ghanashyam Nayak", new System.Drawing.Font("Arial", 30), new SolidBrush(Color.Red), new Point(12, 12), new StringFormat());

    }

}


Ebook Download
View all
Learn
View all