<?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>HieuUK &#187; C#.NET Code</title>
	<atom:link href="http://www.hieu.co.uk/blog/index.php/category/code-vault/cnet-code/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hieu.co.uk/blog</link>
	<description>Creative Programing</description>
	<lastBuildDate>Fri, 27 Jan 2012 10:29:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Easily lock your folder</title>
		<link>http://www.hieu.co.uk/blog/index.php/2010/12/13/easily-lock-your-folder/</link>
		<comments>http://www.hieu.co.uk/blog/index.php/2010/12/13/easily-lock-your-folder/#comments</comments>
		<pubDate>Mon, 13 Dec 2010 15:24:55 +0000</pubDate>
		<dc:creator>HieuUK</dc:creator>
				<category><![CDATA[App Development]]></category>
		<category><![CDATA[C#.NET Code]]></category>
		<category><![CDATA[.Net]]></category>
		<category><![CDATA[App Dev]]></category>
		<category><![CDATA[Application]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[lock]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.hieu.co.uk/blog/?p=1043</guid>
		<description><![CDATA[Background
There are always time you found you need to hide some sensitive information. There are a few solutions out there where allow you to encrypt your folder although it will takes a bit of time for the encryption (and cost money to buy). Some of my friends choose to use Windows folder hide attribution or [...]


Related posts:<ol><li><a href='http://www.hieu.co.uk/blog/index.php/2011/05/25/gtalk-add-in-for-visual-studio/' rel='bookmark' title='Permanent Link: gTalk Add In for Visual Studio'>gTalk Add In for Visual Studio</a> <small> Developers normally don't want a chat when working, but...</small></li>
<li><a href='http://www.hieu.co.uk/blog/index.php/2011/05/12/moving-from-svn-to-mercurial/' rel='bookmark' title='Permanent Link: Moving from SVN to Mercurial'>Moving from SVN to Mercurial</a> <small> When I start at my company, their system uses...</small></li>
</ol>]]></description>
		<wfw:commentRss>http://www.hieu.co.uk/blog/index.php/2010/12/13/easily-lock-your-folder/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Access Windows special directories (My document, Desktop, Program Files)</title>
		<link>http://www.hieu.co.uk/blog/index.php/2009/10/12/access-windows-special-directories-my-document-desktop-program-files/</link>
		<comments>http://www.hieu.co.uk/blog/index.php/2009/10/12/access-windows-special-directories-my-document-desktop-program-files/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 22:25:22 +0000</pubDate>
		<dc:creator>HieuUK</dc:creator>
				<category><![CDATA[C#.NET Code]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.hieu.co.uk/blog/?p=817</guid>
		<description><![CDATA[You can easily access to special directories of windows in C# by using:

Environment.SpecialFolder.MyDocuments;

The same go with other directories

Environment.SpecialFolder.Desktop;
Environment.SpecialFolder.History;
...

]]></description>
		<wfw:commentRss>http://www.hieu.co.uk/blog/index.php/2009/10/12/access-windows-special-directories-my-document-desktop-program-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A shorter way for If statement in C#</title>
		<link>http://www.hieu.co.uk/blog/index.php/2009/07/17/a-shorter-way-for-if-statement-in-c/</link>
		<comments>http://www.hieu.co.uk/blog/index.php/2009/07/17/a-shorter-way-for-if-statement-in-c/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 08:33:29 +0000</pubDate>
		<dc:creator>HieuUK</dc:creator>
				<category><![CDATA[C#.NET Code]]></category>

		<guid isPermaLink="false">http://www.hieu.co.uk/blog/?p=807</guid>
		<description><![CDATA[Instead of writing:

        if (idx == 1)
        {
            result = "Yes";
        }
        else
    [...]]]></description>
		<wfw:commentRss>http://www.hieu.co.uk/blog/index.php/2009/07/17/a-shorter-way-for-if-statement-in-c/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Delete query using Subsonic</title>
		<link>http://www.hieu.co.uk/blog/index.php/2009/05/14/delete-query-using-subsonic/</link>
		<comments>http://www.hieu.co.uk/blog/index.php/2009/05/14/delete-query-using-subsonic/#comments</comments>
		<pubDate>Thu, 14 May 2009 14:30:18 +0000</pubDate>
		<dc:creator>HieuUK</dc:creator>
				<category><![CDATA[C#.NET Code]]></category>

		<guid isPermaLink="false">http://www.hieu.co.uk/blog/?p=773</guid>
		<description><![CDATA[Here&#8217;s a quick little bit of code that shows how to delete records in your database using SubSonic&#8217;s Query Tool. I know you can write this is fewer lines of code, but I think this shows a little more clearly what&#8217;s going on. 

Query qryDelete = new Query(DeliverableCategoriesSelected.Schema);
// You can also do the following line [...]]]></description>
		<wfw:commentRss>http://www.hieu.co.uk/blog/index.php/2009/05/14/delete-query-using-subsonic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get directory size</title>
		<link>http://www.hieu.co.uk/blog/index.php/2009/04/22/get-directory-size/</link>
		<comments>http://www.hieu.co.uk/blog/index.php/2009/04/22/get-directory-size/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 14:13:13 +0000</pubDate>
		<dc:creator>HieuUK</dc:creator>
				<category><![CDATA[C#.NET Code]]></category>

		<guid isPermaLink="false">http://www.hieu.co.uk/blog/index.php/2009/04/22/get-directory-size/</guid>
		<description><![CDATA[Using trace back to get the size of a specific directory.

public long getDirSize(System.IO.DirectoryInfo dir)
{
	long size = 0;
	System.IO.DirectoryInfo[] dirs = dir.GetDirectories();
	System.IO.FileInfo[] files = dir.GetFiles();

	foreach (System.IO.FileInfo fi in files)
		size += fi.Length;

	foreach (System.IO.DirectoryInfo di in dirs)
		size += getDirSize(di);
	return size;
}

]]></description>
		<wfw:commentRss>http://www.hieu.co.uk/blog/index.php/2009/04/22/get-directory-size/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FTP Upload file</title>
		<link>http://www.hieu.co.uk/blog/index.php/2009/04/21/ftp-upload-file/</link>
		<comments>http://www.hieu.co.uk/blog/index.php/2009/04/21/ftp-upload-file/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 15:48:03 +0000</pubDate>
		<dc:creator>HieuUK</dc:creator>
				<category><![CDATA[C#.NET Code]]></category>

		<guid isPermaLink="false">http://www.hieu.co.uk/blog/index.php/2009/04/21/ftp-upload-file/</guid>
		<description><![CDATA[A code snippet upload file using FTP. With some tweak, we could also get the percentage out of this.

        void FTPUpload(string filename, string username, string password, string UploadTo)
        {

            FileInfo [...]]]></description>
		<wfw:commentRss>http://www.hieu.co.uk/blog/index.php/2009/04/21/ftp-upload-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Application paths in C#.net</title>
		<link>http://www.hieu.co.uk/blog/index.php/2009/04/16/application-paths-in-cnet/</link>
		<comments>http://www.hieu.co.uk/blog/index.php/2009/04/16/application-paths-in-cnet/#comments</comments>
		<pubDate>Thu, 16 Apr 2009 11:01:20 +0000</pubDate>
		<dc:creator>HieuUK</dc:creator>
				<category><![CDATA[C#.NET Code]]></category>
		<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.hieu.co.uk/blog/?p=516</guid>
		<description><![CDATA[Application paths in C#.net
Application.ExecutablePath
return C:\projects\test\bin\debug\run.exe
Application.StartupPath
return C:\projects\test\bin\debug
]]></description>
		<wfw:commentRss>http://www.hieu.co.uk/blog/index.php/2009/04/16/application-paths-in-cnet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Validate Email format</title>
		<link>http://www.hieu.co.uk/blog/index.php/2009/04/14/validate-email-format/</link>
		<comments>http://www.hieu.co.uk/blog/index.php/2009/04/14/validate-email-format/#comments</comments>
		<pubDate>Tue, 14 Apr 2009 14:47:17 +0000</pubDate>
		<dc:creator>HieuUK</dc:creator>
				<category><![CDATA[C#.NET Code]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[regex]]></category>

		<guid isPermaLink="false">http://www.hieu.co.uk/blog/?p=465</guid>
		<description><![CDATA[Check the input string if it's in correct email format or not.]]></description>
		<wfw:commentRss>http://www.hieu.co.uk/blog/index.php/2009/04/14/validate-email-format/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Run an app or a link</title>
		<link>http://www.hieu.co.uk/blog/index.php/2009/04/11/run-an-app-or-a-link/</link>
		<comments>http://www.hieu.co.uk/blog/index.php/2009/04/11/run-an-app-or-a-link/#comments</comments>
		<pubDate>Sat, 11 Apr 2009 01:02:04 +0000</pubDate>
		<dc:creator>HieuUK</dc:creator>
				<category><![CDATA[C#.NET Code]]></category>
		<category><![CDATA[.Net]]></category>
		<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://www.hieu.co.uk/blog/?p=395</guid>
		<description><![CDATA[To run an app or a link(open in default browser)]]></description>
		<wfw:commentRss>http://www.hieu.co.uk/blog/index.php/2009/04/11/run-an-app-or-a-link/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Config for Subsonic in Winform</title>
		<link>http://www.hieu.co.uk/blog/index.php/2009/04/11/config-for-subsonic-in-winform/</link>
		<comments>http://www.hieu.co.uk/blog/index.php/2009/04/11/config-for-subsonic-in-winform/#comments</comments>
		<pubDate>Sat, 11 Apr 2009 00:59:22 +0000</pubDate>
		<dc:creator>HieuUK</dc:creator>
				<category><![CDATA[C#.NET Code]]></category>
		<category><![CDATA[.Net]]></category>
		<category><![CDATA[App Dev]]></category>

		<guid isPermaLink="false">http://www.hieu.co.uk/blog/?p=393</guid>
		<description><![CDATA[To use Subsonic as an DAL in your windows application, you will need to do a bit more work then for Web App.]]></description>
		<wfw:commentRss>http://www.hieu.co.uk/blog/index.php/2009/04/11/config-for-subsonic-in-winform/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

