<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>

<channel>
	<title>C# Tutorials</title>
	<atom:link href="http://www.mycutepictures.com/tutorials/csharp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mycutepictures.com/tutorials/csharp</link>
	<description></description>
	<pubDate>Mon, 04 May 2009 02:33:36 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Floating tool window</title>
		<link>http://www.mycutepictures.com/tutorials/csharp/2009/04/floating-tool-window/</link>
		<comments>http://www.mycutepictures.com/tutorials/csharp/2009/04/floating-tool-window/#comments</comments>
		<pubDate>Thu, 09 Apr 2009 13:26:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.mycutepictures.com/tutorials/csharp/2009/04/floating-tool-window/</guid>
		<description><![CDATA[Floating tool window / tool strip with parent window’s title bar remain active all the time.
Download source code (Microsoft Visual C# 2005 Express Edition) 

]]></description>
			<content:encoded><![CDATA[<p>Floating tool window / tool strip with parent window’s title bar remain active all the time.</p>
<p><a href="http://www.mycutepictures.com/tutorials/csharp/files/FloatingToolWindow.zip">Download source code</a> (Microsoft Visual C# 2005 Express Edition) </p>
<p><img title="image" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="458" alt="image" src="http://www.mycutepictures.com/tutorials/csharp/images/Floatingtoolwindow_12D83/image.png" width="522" border="0" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mycutepictures.com/tutorials/csharp/2009/04/floating-tool-window/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Free shape file (*.shp) viewer</title>
		<link>http://www.mycutepictures.com/tutorials/csharp/2009/04/free-shape-file-shp-viewer/</link>
		<comments>http://www.mycutepictures.com/tutorials/csharp/2009/04/free-shape-file-shp-viewer/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 03:30:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[General]]></category>

		<category><![CDATA[c#]]></category>

		<category><![CDATA[code]]></category>

		<category><![CDATA[csharp]]></category>

		<category><![CDATA[file]]></category>

		<category><![CDATA[read]]></category>

		<category><![CDATA[shape]]></category>

		<category><![CDATA[shp]]></category>

		<category><![CDATA[source]]></category>

		<category><![CDATA[viewer]]></category>

		<guid isPermaLink="false">http://www.mycutepictures.com/tutorials/csharp/2009/04/free-shape-file-shp-viewer/</guid>
		<description><![CDATA[Download source code (Microsoft Visual C# 2005 Express Edition)     Download executable file

Note: This beta version only supports point, line and polygon.
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.mycutepictures.com/tutorials/csharp/files/ShapeViewerSrc.zip">Download source code</a> (Microsoft Visual C# 2005 Express Edition)     <br /><a href="http://www.mycutepictures.com/tutorials/csharp/files/ShapeViewer.zip">Download executable file</a></p>
<p><img title="image" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="431" alt="image" src="http://www.mycutepictures.com/tutorials/csharp/images/Freeshapefile.shpviewer_A1EF/image.png" width="519" border="0" /></p>
<p>Note: This beta version only supports point, line and polygon.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mycutepictures.com/tutorials/csharp/2009/04/free-shape-file-shp-viewer/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Drawing wave line in C#</title>
		<link>http://www.mycutepictures.com/tutorials/csharp/2009/03/drawing-wave-lines-in-c/</link>
		<comments>http://www.mycutepictures.com/tutorials/csharp/2009/03/drawing-wave-lines-in-c/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 10:49:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[General]]></category>

		<category><![CDATA[c#]]></category>

		<category><![CDATA[code]]></category>

		<category><![CDATA[csharp]]></category>

		<category><![CDATA[draw]]></category>

		<category><![CDATA[line]]></category>

		<category><![CDATA[source]]></category>

		<category><![CDATA[wave]]></category>

		<guid isPermaLink="false">http://www.mycutepictures.com/tutorials/csharp/2009/03/drawing-wave-lines-in-c/</guid>
		<description><![CDATA[Download source code (Microsoft Visual C# 2005 Express Edition)
&#160; 

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Drawing.Drawing2D;

namespace Tutorial6
{
    public partial class Form1 : Form
    {
        public Form1()
        {
       [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.mycutepictures.com/tutorials/csharp/files/Tutorial6.zip">Download source code</a> (Microsoft Visual C# 2005 Express Edition)</p>
<p>&#160;<img title="image" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="304" alt="image" src="http://www.mycutepictures.com/tutorials/csharp/images/DrawingwavelinesinC_108C4/image.png" width="304" border="0" /> </p>
</p>
<pre class="csharpcode"><span class="kwrd">using</span> System;
<span class="kwrd">using</span> System.Collections.Generic;
<span class="kwrd">using</span> System.ComponentModel;
<span class="kwrd">using</span> System.Data;
<span class="kwrd">using</span> System.Drawing;
<span class="kwrd">using</span> System.Text;
<span class="kwrd">using</span> System.Windows.Forms;
<span class="kwrd">using</span> System.Drawing.Drawing2D;

<span class="kwrd">namespace</span> Tutorial6
{
    <span class="kwrd">public</span> <span class="kwrd">partial</span> <span class="kwrd">class</span> Form1 : Form
    {
        <span class="kwrd">public</span> Form1()
        {
            InitializeComponent();
        }

        <span class="kwrd">private</span> <span class="kwrd">void</span> pictureBox1_Paint(<span class="kwrd">object</span> sender, PaintEventArgs e)
        {
            e.Graphics.SmoothingMode = SmoothingMode.AntiAlias;
            PointF[] pt = <span class="kwrd">new</span> PointF[] {
                <span class="kwrd">new</span> PointF(50,50),
                <span class="kwrd">new</span> PointF(150,50),
                <span class="kwrd">new</span> PointF(200,100),
                <span class="kwrd">new</span> PointF(200,200),
            };
            e.Graphics.DrawLines(Pens.Gray, pt);
            List&lt;PointF&gt; PointList = <span class="kwrd">new</span> List&lt;PointF&gt;();
            <span class="kwrd">float</span> curDist = 0;
            <span class="kwrd">float</span> distance = 0;
            <span class="kwrd">for</span> (<span class="kwrd">int</span> i = 0; i &lt; pt.Length - 1; i++)
            {
                PointF ptA = pt[i];
                PointF ptB = pt[i + 1];
                <span class="kwrd">float</span> deltaX = ptB.X - ptA.X;
                <span class="kwrd">float</span> deltaY = ptB.Y - ptA.Y;
                curDist = 0;
                distance = (<span class="kwrd">float</span>)Math.Sqrt(Math.Pow(deltaX, 2) + Math.Pow(deltaY, 2));
                <span class="kwrd">while</span> (curDist &lt; distance)
                {
                    curDist++;
                    <span class="kwrd">float</span> offsetX = (<span class="kwrd">float</span>)((<span class="kwrd">double</span>)curDist / (<span class="kwrd">double</span>)distance * (<span class="kwrd">double</span>)deltaX);
                    <span class="kwrd">float</span> offsetY = (<span class="kwrd">float</span>)((<span class="kwrd">double</span>)curDist / (<span class="kwrd">double</span>)distance * (<span class="kwrd">double</span>)deltaY);
                    PointList.Add(<span class="kwrd">new</span> PointF(ptA.X + offsetX, ptA.Y + offsetY));
                }
            }
            <span class="kwrd">for</span> (<span class="kwrd">int</span> i = 0; i &lt; PointList.Count - 24; i = i + 24)
            {
                drawWaveLine(e.Graphics, Pens.Black, PointList[i].X, PointList[i].Y, PointList[i + 24].X, PointList[i + 24].Y);
            }
        }

        <span class="kwrd">public</span> <span class="kwrd">void</span> drawWaveLine(Graphics g, Pen pen, <span class="kwrd">float</span> x1, <span class="kwrd">float</span> y1, <span class="kwrd">float</span> x2, <span class="kwrd">float</span> y2)
        {
            <span class="kwrd">float</span> angle = (<span class="kwrd">float</span>)((Math.Atan2(y2 - y1, x2 - x1) * 180 / 3.14159265));
            g.TranslateTransform(x1, y1);
            g.RotateTransform(angle);
            GraphicsPath gp1 = <span class="kwrd">new</span> GraphicsPath();
            Point[] p1 = <span class="kwrd">new</span> Point[] {
                <span class="kwrd">new</span> Point(0,0),
                <span class="kwrd">new</span> Point(3,-3),
                <span class="kwrd">new</span> Point(6,-4),
                <span class="kwrd">new</span> Point(9,-3),
                <span class="kwrd">new</span> Point(12,0),
                <span class="kwrd">new</span> Point(15,3),
                <span class="kwrd">new</span> Point(18,4),
                <span class="kwrd">new</span> Point(21,3),
                <span class="kwrd">new</span> Point(24,0)
            };
            g.DrawLines(pen, p1);
            g.RotateTransform(-angle);
            g.TranslateTransform(-x1, -y1);
        }

    }
}</pre>
<style type="text/css">
<p>.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style>
]]></content:encoded>
			<wfw:commentRss>http://www.mycutepictures.com/tutorials/csharp/2009/03/drawing-wave-lines-in-c/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Drawing lines pixel by pixel in C#</title>
		<link>http://www.mycutepictures.com/tutorials/csharp/2009/03/drawing-lines-pixel-by-pixel-in-c/</link>
		<comments>http://www.mycutepictures.com/tutorials/csharp/2009/03/drawing-lines-pixel-by-pixel-in-c/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 06:26:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.mycutepictures.com/tutorials/csharp/2009/03/drawing-lines-pixel-by-pixel-in-c/</guid>
		<description><![CDATA[Drawing lines pixel by pixel using timer so user can see the animation.
Download source code (Microsoft Visual C# 2005 Express Edition)
 
&#160;

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Drawing.Drawing2D;

namespace WindowsApplication2
{
    public partial class Form1 : Form
    {
        public Form1()
   [...]]]></description>
			<content:encoded><![CDATA[<p>Drawing lines pixel by pixel using timer so user can see the animation.</p>
<p><a href="http://www.mycutepictures.com/tutorials/csharp/files/Tutorial5.zip">Download source code</a> (Microsoft Visual C# 2005 Express Edition)</p>
<p><img title="image" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="304" alt="image" src="http://www.mycutepictures.com/tutorials/csharp/images/DrawinglinespixelbypixelinC_CB20/image.png" width="304" border="0" /> </p>
<p>&#160;</p>
</p>
<pre class="csharpcode"><span class="kwrd">using</span> System;
<span class="kwrd">using</span> System.Collections.Generic;
<span class="kwrd">using</span> System.ComponentModel;
<span class="kwrd">using</span> System.Data;
<span class="kwrd">using</span> System.Drawing;
<span class="kwrd">using</span> System.Text;
<span class="kwrd">using</span> System.Windows.Forms;
<span class="kwrd">using</span> System.Drawing.Drawing2D;

<span class="kwrd">namespace</span> WindowsApplication2
{
    <span class="kwrd">public</span> <span class="kwrd">partial</span> <span class="kwrd">class</span> Form1 : Form
    {
        <span class="kwrd">public</span> Form1()
        {
            InitializeComponent();
        }

        List&lt;PointF&gt; PointList = <span class="kwrd">new</span> List&lt;PointF&gt;();
        <span class="kwrd">int</span> pointIndex = 0;

        <span class="kwrd">private</span> <span class="kwrd">void</span> Form1_Load(<span class="kwrd">object</span> sender, EventArgs e)
        {
            SetStyle(ControlStyles.UserPaint, <span class="kwrd">true</span>);
            SetStyle(ControlStyles.AllPaintingInWmPaint, <span class="kwrd">true</span>);
            SetStyle(ControlStyles.DoubleBuffer, <span class="kwrd">true</span>);
            PointF[] pt = <span class="kwrd">new</span> PointF[] {
                <span class="kwrd">new</span> PointF(100, 100),
                <span class="kwrd">new</span> PointF(150, 150),
                <span class="kwrd">new</span> PointF(200, 100),
                <span class="kwrd">new</span> PointF(100, 100),

            };
            <span class="rem">// Get Points From Line(s)</span>
            <span class="kwrd">float</span> curDist = 0;
            <span class="kwrd">float</span> distance = 0;
            <span class="kwrd">for</span> (<span class="kwrd">int</span> i = 0; i &lt; pt.Length - 1; i++)
            {
                PointF ptA = pt[i];
                PointF ptB = pt[i + 1];
                <span class="kwrd">float</span> deltaX = ptB.X - ptA.X;
                <span class="kwrd">float</span> deltaY = ptB.Y - ptA.Y;
                curDist = 0;
                distance = (<span class="kwrd">float</span>)Math.Sqrt(Math.Pow(deltaX, 2) + Math.Pow(deltaY, 2));
                <span class="kwrd">while</span> (curDist &lt; distance)
                {
                    curDist++;
                    <span class="kwrd">float</span> offsetX = (<span class="kwrd">float</span>)((<span class="kwrd">double</span>)curDist / (<span class="kwrd">double</span>)distance * (<span class="kwrd">double</span>)deltaX);
                    <span class="kwrd">float</span> offsetY = (<span class="kwrd">float</span>)((<span class="kwrd">double</span>)curDist / (<span class="kwrd">double</span>)distance * (<span class="kwrd">double</span>)deltaY);
                    PointList.Add(<span class="kwrd">new</span> PointF(ptA.X + offsetX, ptA.Y + offsetY));
                }
            }
        }

        <span class="kwrd">private</span> <span class="kwrd">void</span> Form1_Paint(<span class="kwrd">object</span> sender, PaintEventArgs e)
        {
            e.Graphics.SmoothingMode = SmoothingMode.AntiAlias;
            <span class="kwrd">for</span> (<span class="kwrd">int</span> i = 0; i &lt; pointIndex; i++)
            {
                e.Graphics.DrawLine(Pens.Black, PointList[i].X, PointList[i].Y, PointList[i + 1].X, PointList[i + 1].Y);
            }
        }

        <span class="kwrd">private</span> <span class="kwrd">void</span> timer1_Tick(<span class="kwrd">object</span> sender, EventArgs e)
        {
            <span class="kwrd">if</span> (pointIndex &lt; PointList.Count - 1)
            {
                pointIndex++;
                <span class="kwrd">this</span>.Refresh();
            }
        }
    }
}</pre>
<style type="text/css">
<p>.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style>
]]></content:encoded>
			<wfw:commentRss>http://www.mycutepictures.com/tutorials/csharp/2009/03/drawing-lines-pixel-by-pixel-in-c/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Extract picture in zip file and display in a picture box</title>
		<link>http://www.mycutepictures.com/tutorials/csharp/2009/03/extract-picture-in-zip-file-and-display-in-a-picture-box/</link>
		<comments>http://www.mycutepictures.com/tutorials/csharp/2009/03/extract-picture-in-zip-file-and-display-in-a-picture-box/#comments</comments>
		<pubDate>Fri, 13 Mar 2009 13:00:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[General]]></category>

		<category><![CDATA[c#]]></category>

		<category><![CDATA[csharp]]></category>

		<category><![CDATA[picture]]></category>

		<category><![CDATA[zip]]></category>

		<guid isPermaLink="false">http://www.mycutepictures.com/tutorials/csharp/2009/03/extract-picture-in-zip-file-and-display-in-a-picture-box/</guid>
		<description><![CDATA[We will be using SharpZipLib which can be downloaded from
http://www.icsharpcode.net/OpenSource/SharpZipLib/Download.aspx
Click on the Download for Assemblies for .NET 1.1, .NET 2.0, .NET CF 1.0, .NET CF 2.0
Once you’ve downloaded the ZIP file, extract it and load the ICSharpCode.SharpZipLib.dll depends on the version of .NET you are using by going to Project &#62; Add Reference &#62; Browse.
The [...]]]></description>
			<content:encoded><![CDATA[<p>We will be using SharpZipLib which can be downloaded from</p>
<p><a title="http://www.icsharpcode.net/OpenSource/SharpZipLib/Download.aspx" href="http://www.icsharpcode.net/OpenSource/SharpZipLib/Download.aspx">http://www.icsharpcode.net/OpenSource/SharpZipLib/Download.aspx</a></p>
<p>Click on the Download for Assemblies for .NET 1.1, .NET 2.0, .NET CF 1.0, .NET CF 2.0</p>
<p>Once you’ve downloaded the ZIP file, extract it and load the ICSharpCode.SharpZipLib.dll depends on the version of .NET you are using by going to Project &gt; Add Reference &gt; Browse.</p>
<p>The following code load the image Sunset.jpg from D:Sunset.zip and display in PictureBox1.</p>
<p><img title="image" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="304" alt="image" src="http://www.mycutepictures.com/tutorials/csharp/images/Extractpictureinzipfileanddisplayinapict_1277B/image.png" width="304" border="0" /> </p>
<pre class="csharpcode"><span class="kwrd">using</span> System;
<span class="kwrd">using</span> System.Collections.Generic;
<span class="kwrd">using</span> System.ComponentModel;
<span class="kwrd">using</span> System.Data;
<span class="kwrd">using</span> System.Drawing;
<span class="kwrd">using</span> System.Text;
<span class="kwrd">using</span> System.Windows.Forms;

<span class="kwrd">using</span> System.IO;
<span class="kwrd">using</span> ICSharpCode.SharpZipLib.Zip;

<span class="kwrd">namespace</span> WindowsApplication1
{
    <span class="kwrd">public</span> <span class="kwrd">partial</span> <span class="kwrd">class</span> Form1 : Form
    {
        <span class="kwrd">public</span> Form1()
        {
            InitializeComponent();
        }

        FileStream fileStream;
        ZipFile zipFile;
        ZipEntry zipEntry;
        Stream stream;
        Bitmap bitmap;

        <span class="kwrd">private</span> <span class="kwrd">void</span> Form1_Load(<span class="kwrd">object</span> sender, EventArgs e)
        {
            fileStream = <span class="kwrd">new</span> FileStream(<span class="str">&quot;D:\Sunset.zip&quot;</span>, FileMode.Open, FileAccess.Read);
            zipFile = <span class="kwrd">new</span> ZipFile(fileStream);
            zipEntry = zipFile.GetEntry(<span class="str">&quot;Sunset.jpg&quot;</span>);
            stream = zipFile.GetInputStream(zipEntry);
            bitmap = <span class="kwrd">new</span> Bitmap(stream);
            pictureBox1.Image = bitmap;
        }
    }
}</pre>
<style type="text/css">
.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style>
]]></content:encoded>
			<wfw:commentRss>http://www.mycutepictures.com/tutorials/csharp/2009/03/extract-picture-in-zip-file-and-display-in-a-picture-box/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Drawing and rotating text on form</title>
		<link>http://www.mycutepictures.com/tutorials/csharp/2009/03/drawing-and-rotating-text-on-form/</link>
		<comments>http://www.mycutepictures.com/tutorials/csharp/2009/03/drawing-and-rotating-text-on-form/#comments</comments>
		<pubDate>Thu, 12 Mar 2009 11:51:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[General]]></category>

		<category><![CDATA[c#]]></category>

		<category><![CDATA[circle]]></category>

		<category><![CDATA[csharp]]></category>

		<category><![CDATA[drawing]]></category>

		<category><![CDATA[form]]></category>

		<category><![CDATA[rotate]]></category>

		<category><![CDATA[text]]></category>

		<guid isPermaLink="false">http://www.mycutepictures.com/tutorials/csharp/2009/03/drawing-and-rotating-text-on-form/</guid>
		<description><![CDATA[

 

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace WindowsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
    [...]]]></description>
			<content:encoded><![CDATA[</p>
<p><strong></strong></p>
<p> <img title="image" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="304" alt="image" src="http://www.mycutepictures.com/tutorials/csharp/images/Drawingandrotatingtextonform_1174D/image.png" width="304" border="0" />
</p>
<pre class="csharpcode"><span class="kwrd">using</span> System;
<span class="kwrd">using</span> System.Collections.Generic;
<span class="kwrd">using</span> System.ComponentModel;
<span class="kwrd">using</span> System.Data;
<span class="kwrd">using</span> System.Drawing;
<span class="kwrd">using</span> System.Text;
<span class="kwrd">using</span> System.Windows.Forms;

<span class="kwrd">namespace</span> WindowsApplication1
{
    <span class="kwrd">public</span> <span class="kwrd">partial</span> <span class="kwrd">class</span> Form1 : Form
    {
        <span class="kwrd">public</span> Form1()
        {
            InitializeComponent();
        }

        <span class="kwrd">private</span> <span class="kwrd">void</span> Form1_Paint(<span class="kwrd">object</span> sender, PaintEventArgs e)
        {
            e.Graphics.TranslateTransform(100, 100);
            e.Graphics.RotateTransform(45);
            e.Graphics.DrawString(<span class="str">&quot;Hello World&quot;</span>, <span class="kwrd">new</span> Font(<span class="str">&quot;Arial&quot;</span>, 20), Brushes.Red, <span class="kwrd">new</span> Point(0, 0), StringFormat.GenericDefault);
        }
    }
}</pre>
<style type="text/css">
<p>.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style>
]]></content:encoded>
			<wfw:commentRss>http://www.mycutepictures.com/tutorials/csharp/2009/03/drawing-and-rotating-text-on-form/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Drawing an anti aliased circle on form</title>
		<link>http://www.mycutepictures.com/tutorials/csharp/2009/03/drawing-an-anti-aliased-circle-on-form/</link>
		<comments>http://www.mycutepictures.com/tutorials/csharp/2009/03/drawing-an-anti-aliased-circle-on-form/#comments</comments>
		<pubDate>Mon, 09 Mar 2009 11:28:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[General]]></category>

		<category><![CDATA[antialias]]></category>

		<category><![CDATA[c#]]></category>

		<category><![CDATA[circle]]></category>

		<category><![CDATA[csharp]]></category>

		<category><![CDATA[drawing]]></category>

		<category><![CDATA[form]]></category>

		<guid isPermaLink="false">http://www.mycutepictures.com/tutorials/csharp/?p=10</guid>
		<description><![CDATA[
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Drawing.Drawing2D;

namespace WindowsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
    [...]]]></description>
			<content:encoded><![CDATA[<p><img title="image" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="304" alt="image" src="http://www.mycutepictures.com/tutorials/csharp/images/Drawinganantialiasedcircleonform_11206/image.png" width="304" border="0" /></p>
<pre class="csharpcode"><span class="kwrd">using</span> System;
<span class="kwrd">using</span> System.Collections.Generic;
<span class="kwrd">using</span> System.ComponentModel;
<span class="kwrd">using</span> System.Data;
<span class="kwrd">using</span> System.Drawing;
<span class="kwrd">using</span> System.Text;
<span class="kwrd">using</span> System.Windows.Forms;
<span class="kwrd">using</span> System.Drawing.Drawing2D;

<span class="kwrd">namespace</span> WindowsApplication1
{
    <span class="kwrd">public</span> <span class="kwrd">partial</span> <span class="kwrd">class</span> Form1 : Form
    {
        <span class="kwrd">public</span> Form1()
        {
            InitializeComponent();
        }

        <span class="kwrd">private</span> <span class="kwrd">void</span> Form1_Paint(<span class="kwrd">object</span> sender, PaintEventArgs e)
        {
            e.Graphics.SmoothingMode = SmoothingMode.AntiAlias;
            e.Graphics.DrawEllipse(Pens.Red, 50, 50, 100, 100);
        }
    }
}</pre>
<style type="text/css">
<p>.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style>
]]></content:encoded>
			<wfw:commentRss>http://www.mycutepictures.com/tutorials/csharp/2009/03/drawing-an-anti-aliased-circle-on-form/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Drawing a circle on C# form</title>
		<link>http://www.mycutepictures.com/tutorials/csharp/2009/03/drawing-on-c-form/</link>
		<comments>http://www.mycutepictures.com/tutorials/csharp/2009/03/drawing-on-c-form/#comments</comments>
		<pubDate>Sat, 07 Mar 2009 11:11:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[General]]></category>

		<category><![CDATA[c#]]></category>

		<category><![CDATA[circle]]></category>

		<category><![CDATA[csharp]]></category>

		<category><![CDATA[drawing]]></category>

		<category><![CDATA[form]]></category>

		<guid isPermaLink="false">http://www.mycutepictures.com/tutorials/csharp/?p=5</guid>
		<description><![CDATA[
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace WindowsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
     [...]]]></description>
			<content:encoded><![CDATA[<p><img title="image" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="304" alt="image" src="http://www.mycutepictures.com/tutorials/csharp/images/DrawingonCForm_10D95/image_3.png" width="304" border="0" /></p>
<pre class="csharpcode"><span class="kwrd">using</span> System;
<span class="kwrd">using</span> System.Collections.Generic;
<span class="kwrd">using</span> System.ComponentModel;
<span class="kwrd">using</span> System.Data;
<span class="kwrd">using</span> System.Drawing;
<span class="kwrd">using</span> System.Text;
<span class="kwrd">using</span> System.Windows.Forms;

<span class="kwrd">namespace</span> WindowsApplication1
{
    <span class="kwrd">public</span> <span class="kwrd">partial</span> <span class="kwrd">class</span> Form1 : Form
    {
        <span class="kwrd">public</span> Form1()
        {
            InitializeComponent();
        }

        <span class="kwrd">private</span> <span class="kwrd">void</span> Form1_Paint(<span class="kwrd">object</span> sender, PaintEventArgs e)
        {
            e.Graphics.DrawEllipse(Pens.Red, 50, 50, 100, 100);
        }
    }
} </pre>
<style type="text/css">
<p>.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style>
]]></content:encoded>
			<wfw:commentRss>http://www.mycutepictures.com/tutorials/csharp/2009/03/drawing-on-c-form/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
