Breaking News
Wednesday, 16 January 2013

How to Drawing string text in c#.Net

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()

        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     ///////////////////////////

     ઈન્ટરનેટ જોડાણ વગર તમારા મોબાઇલ માં ફેસબુક સાથે જો...

     How to customize send to menu.

     How to hide folder without any software.

     How to Resize a Partition in Windows 7 or Vista

/\/ir@\/  <(.'.)>


Post a Comment

Thanks for comment

Toggle Footer