C#.NET Code

Easily lock your folder

December 13, 2010 - 4 Comments - App Development, C#.NET Code

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 [...]

Article Tags: , , , , ,

Access Windows special directories (My document, Desktop, Program Files)

October 12, 2009 - No Comments - C#.NET Code

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;

Article Tags: ,

A shorter way for If statement in C#

July 17, 2009 - 4 Comments - C#.NET Code

Instead of writing:

if (idx == 1)
{
result = “Yes”;
}
else
[...]

Article

Delete query using Subsonic

May 14, 2009 - No Comments - C#.NET Code

Here’s a quick little bit of code that shows how to delete records in your database using SubSonic’s Query Tool. I know you can write this is fewer lines of code, but I think this shows a little more clearly what’s going on.

Article

Get directory size

April 22, 2009 - No Comments - C#.NET Code

Using trace back to get the size of a specific directory.

Article