<?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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>C# 411 &#187; C#</title>
	<atom:link href="http://www.csharp411.com/category/c/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.csharp411.com</link>
	<description>C# Information, Code, Tips and News</description>
	<lastBuildDate>Mon, 19 Jul 2010 14:56:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>C# Code Converter</title>
		<link>http://www.csharp411.com/net-code-converter-c-or-vb-to-c-vb-python-or-ruby/</link>
		<comments>http://www.csharp411.com/net-code-converter-c-or-vb-to-c-vb-python-or-ruby/#comments</comments>
		<pubDate>Mon, 19 Jul 2010 14:56:35 +0000</pubDate>
		<dc:creator>timm</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://www.csharp411.com/net-code-converter-c-or-vb-to-c-vb-python-or-ruby/</guid>
		<description><![CDATA[DeveloperFusion offers a free .NET code converter.&#160; Simply paste your C# or VB.NET code into this web-based tool, then select your target language: C#, VB.NET, Python or Ruby.&#160; Supports syntax up to .NET 3.5.
Code Converter


Related posts:C# Universal Type ConverterExecuting Code in Partial Trust EnvironmentsMicrosoft to Share .NET Framework Code


Related posts:<ol><li><a href='http://www.csharp411.com/c-universal-type-converter/' rel='bookmark' title='Permanent Link: C# Universal Type Converter'>C# Universal Type Converter</a></li><li><a href='http://www.csharp411.com/executing-code-in-partial-trust-environments/' rel='bookmark' title='Permanent Link: Executing Code in Partial Trust Environments'>Executing Code in Partial Trust Environments</a></li><li><a href='http://www.csharp411.com/microsoft-to-share-net-framework-code/' rel='bookmark' title='Permanent Link: Microsoft to Share .NET Framework Code'>Microsoft to Share .NET Framework Code</a></li></ol>]]></description>
		<wfw:commentRss>http://www.csharp411.com/net-code-converter-c-or-vb-to-c-vb-python-or-ruby/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add Drop Shadow to Borderless Form</title>
		<link>http://www.csharp411.com/add-drop-shadow-to-borderless-form/</link>
		<comments>http://www.csharp411.com/add-drop-shadow-to-borderless-form/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 15:32:23 +0000</pubDate>
		<dc:creator>timm</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[User Interface]]></category>
		<category><![CDATA[Windows Forms]]></category>

		<guid isPermaLink="false">http://www.csharp411.com/add-drop-shadow-to-borderless-form/</guid>
		<description><![CDATA[When you create a Form with a border, Windows automatically draws a drop shadow around the form, as shown here:

However, if you set the form’s FormBorderStyle property to None, Windows draws neither the form border nor the drop shadow, as shown here:

 

So what if you don’t want a form border, but you do want [...]


Related posts:<ol><li><a href='http://www.csharp411.com/hide-form-from-alttab/' rel='bookmark' title='Permanent Link: Hide Form from Alt+Tab'>Hide Form from Alt+Tab</a></li><li><a href='http://www.csharp411.com/c-focus-textbox-on-form-load/' rel='bookmark' title='Permanent Link: C# Focus TextBox on Form Load'>C# Focus TextBox on Form Load</a></li><li><a href='http://www.csharp411.com/c-winforms-form-event-order/' rel='bookmark' title='Permanent Link: C# WinForms Form Event Order'>C# WinForms Form Event Order</a></li></ol>]]></description>
		<wfw:commentRss>http://www.csharp411.com/add-drop-shadow-to-borderless-form/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>C# Convert Byte Array to String</title>
		<link>http://www.csharp411.com/c-convert-byte-array-to-string/</link>
		<comments>http://www.csharp411.com/c-convert-byte-array-to-string/#comments</comments>
		<pubDate>Thu, 22 Apr 2010 00:47:57 +0000</pubDate>
		<dc:creator>timm</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.csharp411.com/c-convert-byte-array-to-string/</guid>
		<description><![CDATA[It’s easy to convert a byte array to a string.&#160; For an ASCII string, use the Encoding.ASCII.GetString static method:
byte[] buffer = new byte[10];
// todo: populate the buffer with string data
string s = Encoding.ASCII.GetString( buffer );
  


Related posts:Convert String to Byte ArrayC# Convert String to Stream, and Stream to StringRead File into Byte Array


Related posts:<ol><li><a href='http://www.csharp411.com/convert-string-to-byte-array/' rel='bookmark' title='Permanent Link: Convert String to Byte Array'>Convert String to Byte Array</a></li><li><a href='http://www.csharp411.com/c-convert-string-to-stream-and-stream-to-string/' rel='bookmark' title='Permanent Link: C# Convert String to Stream, and Stream to String'>C# Convert String to Stream, and Stream to String</a></li><li><a href='http://www.csharp411.com/read-file-into-byte-array/' rel='bookmark' title='Permanent Link: Read File into Byte Array'>Read File into Byte Array</a></li></ol>]]></description>
		<wfw:commentRss>http://www.csharp411.com/c-convert-byte-array-to-string/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Convert String to Byte Array</title>
		<link>http://www.csharp411.com/convert-string-to-byte-array/</link>
		<comments>http://www.csharp411.com/convert-string-to-byte-array/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 20:18:57 +0000</pubDate>
		<dc:creator>timm</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.csharp411.com/convert-string-to-byte-array/</guid>
		<description><![CDATA[It’s easy to convert a string to a byte array.&#160; For an ASCII string, use the Encoding.ASCII.GetBytes static method:
string s = &#34;Test String&#34;;
byte[] byteArray = Encoding.ASCII.GetBytes( s );
  


Related posts:C# Convert Byte Array to StringC# Convert String to Stream, and Stream to StringRead File into Byte Array


Related posts:<ol><li><a href='http://www.csharp411.com/c-convert-byte-array-to-string/' rel='bookmark' title='Permanent Link: C# Convert Byte Array to String'>C# Convert Byte Array to String</a></li><li><a href='http://www.csharp411.com/c-convert-string-to-stream-and-stream-to-string/' rel='bookmark' title='Permanent Link: C# Convert String to Stream, and Stream to String'>C# Convert String to Stream, and Stream to String</a></li><li><a href='http://www.csharp411.com/read-file-into-byte-array/' rel='bookmark' title='Permanent Link: Read File into Byte Array'>Read File into Byte Array</a></li></ol>]]></description>
		<wfw:commentRss>http://www.csharp411.com/convert-string-to-byte-array/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Read File into Byte Array</title>
		<link>http://www.csharp411.com/read-file-into-byte-array/</link>
		<comments>http://www.csharp411.com/read-file-into-byte-array/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 20:13:37 +0000</pubDate>
		<dc:creator>timm</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[IO]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.csharp411.com/read-file-into-byte-array/</guid>
		<description><![CDATA[It’s easy to read a file into a byte array.&#160; Just use the File.ReadAllBytes static method.&#160; This opens a binary file in read-only mode, reads the contents of the file into a byte array, and then closes the file.
string filePath = @&#34;C:\test.doc&#34;;
byte[] byteArray = File.ReadAllBytes( filePath );
  


Related posts:C# Read Text File Line-by-LineC# Convert [...]


Related posts:<ol><li><a href='http://www.csharp411.com/c-read-text-file-line-by-line/' rel='bookmark' title='Permanent Link: C# Read Text File Line-by-Line'>C# Read Text File Line-by-Line</a></li><li><a href='http://www.csharp411.com/c-convert-byte-array-to-string/' rel='bookmark' title='Permanent Link: C# Convert Byte Array to String'>C# Convert Byte Array to String</a></li><li><a href='http://www.csharp411.com/convert-string-to-byte-array/' rel='bookmark' title='Permanent Link: Convert String to Byte Array'>Convert String to Byte Array</a></li></ol>]]></description>
		<wfw:commentRss>http://www.csharp411.com/read-file-into-byte-array/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Visual Studio 2010 and .NET Framework 4.0 Released Today</title>
		<link>http://www.csharp411.com/visual-studio-2010-and-net-framework-4-0-released-today/</link>
		<comments>http://www.csharp411.com/visual-studio-2010-and-net-framework-4-0-released-today/#comments</comments>
		<pubDate>Mon, 12 Apr 2010 15:29:41 +0000</pubDate>
		<dc:creator>timm</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Visual Basic]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://www.csharp411.com/visual-studio-2010-and-net-framework-4-0-released-today/</guid>
		<description><![CDATA[ Microsoft is releasing Visual Studio 2010, .NET Framework 4.0, and Silverlight 4 at the Visual Studio Developer Conference in Las Vegas.&#160; VS 2010 and .NET 4 are available today, and Silverlight 4 will be available to download later this week. 
Read more at DevTopics &#62;&#62;


Related posts:Visual Studio 2010 and .NET Framework 4 Release CandidateMicrosoft [...]


Related posts:<ol><li><a href='http://www.csharp411.com/visual-studio-2010-and-net-framework-4-release-candidate-2/' rel='bookmark' title='Permanent Link: Visual Studio 2010 and .NET Framework 4 Release Candidate'>Visual Studio 2010 and .NET Framework 4 Release Candidate</a></li><li><a href='http://www.csharp411.com/microsoft-unveils-visual-studio-2010-and-net-40/' rel='bookmark' title='Permanent Link: Microsoft Unveils Visual Studio 2010 and .NET 4.0'>Microsoft Unveils Visual Studio 2010 and .NET 4.0</a></li><li><a href='http://www.csharp411.com/visual-studio-2008-and-net-35-service-pack-1-released/' rel='bookmark' title='Permanent Link: Visual Studio 2008 and .NET 3.5 Service Pack 1 Released'>Visual Studio 2008 and .NET 3.5 Service Pack 1 Released</a></li></ol>]]></description>
		<wfw:commentRss>http://www.csharp411.com/visual-studio-2010-and-net-framework-4-0-released-today/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Microsoft Community Promise for C# and CLI</title>
		<link>http://www.csharp411.com/microsoft-community-promise-for-c-and-cli/</link>
		<comments>http://www.csharp411.com/microsoft-community-promise-for-c-and-cli/#comments</comments>
		<pubDate>Tue, 07 Jul 2009 16:30:12 +0000</pubDate>
		<dc:creator>timm</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Microsoft]]></category>

		<guid isPermaLink="false">http://www.csharp411.com/microsoft-community-promise-for-c-and-cli/</guid>
		<description><![CDATA[Microsoft is applying its Community Promise to the C# programming language and Common Language Infrastructure (CLI).&#160; This means that anyone can freely build, sell, distribute or use programs with C# and the CLI without signing a license agreement or otherwise communicating to Microsoft.&#160; This applies to all distribution models including open source and GPL.&#160; Under [...]


Related posts:<ol><li><a href='http://www.csharp411.com/blogs-from-microsoft-c-development-team/' rel='bookmark' title='Permanent Link: Blogs from Microsoft C# Development Team'>Blogs from Microsoft C# Development Team</a></li><li><a href='http://www.csharp411.com/free-microsoft-software-from-websitespark/' rel='bookmark' title='Permanent Link: Free Microsoft Software from WebsiteSpark'>Free Microsoft Software from WebsiteSpark</a></li><li><a href='http://www.csharp411.com/microsoft-to-share-net-framework-code/' rel='bookmark' title='Permanent Link: Microsoft to Share .NET Framework Code'>Microsoft to Share .NET Framework Code</a></li></ol>]]></description>
		<wfw:commentRss>http://www.csharp411.com/microsoft-community-promise-for-c-and-cli/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C# Decimal: Literals, Conversions and Formatting</title>
		<link>http://www.csharp411.com/c-decimal-literals-conversions-and-formatting/</link>
		<comments>http://www.csharp411.com/c-decimal-literals-conversions-and-formatting/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 14:58:38 +0000</pubDate>
		<dc:creator>timm</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.csharp411.com/c-decimal-literals-conversions-and-formatting/</guid>
		<description><![CDATA[The C# decimal keyword denotes a 128-bit data type.&#160; Compared to floating-point types, the decimal type has a greater precision and a smaller range, which makes it suitable for financial and monetary calculations.
Approximate Range: ±1.0 × 10−28 to ±7.9 × 1028
Precision:&#160; 28-29 significant digits
.NET Type:&#160; System.Decimal

 
Decimal Literal
If you want a numeric literal to be [...]


Related posts:<ol><li><a href='http://www.csharp411.com/programmatically-set-decimal-places/' rel='bookmark' title='Permanent Link: Programmatically Set Decimal Places'>Programmatically Set Decimal Places</a></li><li><a href='http://www.csharp411.com/in-c-a-string-is-a-string/' rel='bookmark' title='Permanent Link: In C#, a string is a String'>In C#, a string is a String</a></li><li><a href='http://www.csharp411.com/c-universal-type-converter/' rel='bookmark' title='Permanent Link: C# Universal Type Converter'>C# Universal Type Converter</a></li></ol>]]></description>
		<wfw:commentRss>http://www.csharp411.com/c-decimal-literals-conversions-and-formatting/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>The Proper Way to Show the Wait Cursor</title>
		<link>http://www.csharp411.com/the-proper-way-to-show-the-wait-cursor/</link>
		<comments>http://www.csharp411.com/the-proper-way-to-show-the-wait-cursor/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 17:26:26 +0000</pubDate>
		<dc:creator>timm</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Windows Forms]]></category>

		<guid isPermaLink="false">http://www.csharp411.com/the-proper-way-to-show-the-wait-cursor/</guid>
		<description><![CDATA[It’s common UI courtesy to show the Wait cursor when performing a long operation that requires the user to wait.&#160; Here is how the Wait cursor appears in Windows Vista: 
 
But developers often go about this the wrong way by setting the Cursor.Current property as follows:
Cursor.Current = Cursors.WaitCursor;
  

The problem with this approach [...]


Related posts:<ol><li><a href='http://www.csharp411.com/see-all-key-events-with-keypreview/' rel='bookmark' title='Permanent Link: See All Key Events with KeyPreview'>See All Key Events with KeyPreview</a></li><li><a href='http://www.csharp411.com/show-tooltip-on-tabpage-in-tabcontrol/' rel='bookmark' title='Permanent Link: Show ToolTip on TabPage in TabControl'>Show ToolTip on TabPage in TabControl</a></li><li><a href='http://www.csharp411.com/manipulating-controls-across-threads/' rel='bookmark' title='Permanent Link: Manipulating Controls Across Threads'>Manipulating Controls Across Threads</a></li></ol>]]></description>
		<wfw:commentRss>http://www.csharp411.com/the-proper-way-to-show-the-wait-cursor/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Clean/Strip/Remove Binary Characters from C# String</title>
		<link>http://www.csharp411.com/cleanstripremove-binary-characters-from-c-string/</link>
		<comments>http://www.csharp411.com/cleanstripremove-binary-characters-from-c-string/#comments</comments>
		<pubDate>Wed, 18 Mar 2009 13:49:53 +0000</pubDate>
		<dc:creator>timm</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.csharp411.com/cleanstripremove-binary-characters-from-c-string/</guid>
		<description><![CDATA[Sometimes you may need to display or print an input string that contains binary characters.  The following function replaces all binary characters in a string with a blank.  You can easily modify this method to remove other undesirable characters (such as high-ASCII) if needed.

Strip Function
static public string CleanString( string s )
{
    if [...]


Related posts:<ol><li><a href='http://www.csharp411.com/convert-binary-to-base64-string/' rel='bookmark' title='Permanent Link: Convert Binary to Base64 String'>Convert Binary to Base64 String</a></li><li><a href='http://www.csharp411.com/clear-c-stringbuilder/' rel='bookmark' title='Permanent Link: Clear C# StringBuilder'>Clear C# StringBuilder</a></li><li><a href='http://www.csharp411.com/truncate-file-path-with-ellipsis/' rel='bookmark' title='Permanent Link: Truncate File Path with Ellipsis'>Truncate File Path with Ellipsis</a></li></ol>]]></description>
		<wfw:commentRss>http://www.csharp411.com/cleanstripremove-binary-characters-from-c-string/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
