For drawing string text you have to follow following steps... //////////////////////// CODE //////////////////////// using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace _123 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void panel1_Click(object sender, EventArgs e) { SolidBrush s = new SolidBrush(Color.Blue); Graphics g = panel1.CreateGraphics(); FontFamily ff = new FontFamily("arial"); System.Drawing.Font font = new System.Drawing.Font(ff, 50, FontStyle.Italic); g.DrawString("Nirav", font, s, new Point(25, 25)); } } } /////////////////////// OUTPUT /////////////////////////// ઈન્ટરનેટ જોડાણ વગર તમારા મોબાઇલ માં ફેસબુક સાથે જો... ...
Comments
Post a Comment