How to use ' Pen ' object in C#.Net

How to draw the different shapes in c#.net using Pen object.....

////////////////////////   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 _121
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void panel1_Click(object sender, EventArgs e)
        {
            Pen p = new Pen(Color.Blue, 5);
            Graphics g = panel1.CreateGraphics();

            g.DrawRectangle(p,22,22,22,22);
        }
    }
}



/////////////////////   OUTPUT   /////////////////////////





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


      c code for SPI calculation

      How to change name of start button in xp

     how to crack IDM

     how to connect to facebook without Internet connec...

Comments

Popular posts from this blog

How to get column value from the selected row in data grid in wpf c#.net

How to make and use web service in Microsoft Dynamics Navision.

How to use Format function in Microsoft Dynamics Navision.