CSS 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()); } } |
Graphics-Draw a string
This code shows you that how you can draw a string on your form.


Join the conversation! Your thoughts help the community grow.