Great svn client software for Visual Studio

Let me recommend a plugin for Visual Studio, its name is AnkhSVN. I think many programmer might be using TortoiseSVN as a svn client tool. Yes, TortoiseSVN is a great SVN client (it has server function also) too. But if you write code using visual studio, you might think about a svn client which is [...]

Read More » »

Remote connect to SQL Server 2005 Express or SQL Server 2005

Microsoft SQL Server 2005 or Microsoft SQL Server 2005 Express do not allow remote access by default. If you want to remote connect or use another computer in your LAN, you have to configure on your SQL Server 2005 or SQL Server 2005 Express. In this article, we will use SQL Server 2005 Express as [...]

Read More » »

Intel Dual Core vs Intel Core 2 Duo

When you buy a computer with the label “Intel Inside” which means the computer’s CPU is Intel CPU, Then maybe you were confused by “Pentium Dual Core” and “Core 2 Duo” . Actually, when we say “Dual Core”, it should cover all processors that has 2 cores. That means: Pentium Dual Core is a Dual [...]

Read More » »

How to change all tab pages’s title for a TabControl using C# ?

In some cases such as Multiple languages dynamically switching and if you have a main TabControl with some sub tab pages will be dynamically added into it, you might find it is not easy if you want to change all these dynamic tab pages. Actually, if you have done Multiple languages dynamically switching mechanism in [...]

Read More » »

Open Visual Studio 2008 project file in Visual Studio 2005 ?

We know the Microsoft Visual Studio IDE Higher version can open the project which created in lower version by convert wizard steps. For example, whey you try to open a VS 2005 project in VS 2008, you will see a convert wizard windows firstly, it helps you convert old project to new project which can [...]

Read More » »

How to add a Uninstall option in Visual Studio Setup project without writing code

Using Visual Studio 2005/2008, you don’t need to write any code to add a uninstall option for a Setup project (Yes I know some people can write code to do it) 1) In the Setup Project –> File System windows –> Right Click “File System on Target machine” –> add a Special Folder, select System [...]

Read More » »

Create SQL Server Database using C#

Here is a sample from codeproject : private void CreateDatabase(DatabaseParam DBParam) {     System.Data.SqlClient.SqlConnection tmpConn;     string sqlCreateDBQuery;     tmpConn = new SqlConnection();     tmpConn.ConnectionString = “SERVER = ” + DBParam.ServerName +                          “; DATABASE = master; User ID = sa; Pwd = sa”;     sqlCreateDBQuery = ” CREATE DATABASE ”                        + DBParam.DatabaseName                        [...]

Read More » »

List enum item names using C#

Assume you have define an enum like :public enum LanguageCollection : int{    English = 0,    简体中文,    Español,    Tuurkish,    Français}Is it possible to populate all enum item to a dropdownlist control without hard code each enum name ? The answer is Yes. Here is sample code :this.menuCBLanguage.Items.Clear();for (int i = 0; i < Enum.GetNames(typeof(LanguageCollection)).Length; i++){     this.menuCBLanguage.Items.Add(Enum.GetName(typeof(LanguageCollection), [...]

Read More » »

Remove subversion (SVN) source control from a project

How to remove subversion (SVN) source control from a project ? Too easy ways: Way 1: Just simply delete all .svn folders under your project folder and all sub folders in Windows Explorer; Way 2: Create a new folder  which you can get a Non-SVN control project code later, go to your SVN controled project, [...]

Read More » »

Should I add the Visual Studio .suo and .user files to source control ?

.suo and .user file are two types of hidden user files in Visual Studio project. .suo file which is a binary file. .user file is the project user file which is a text file. You don’t need to add these 2 files to your source control (SCM) since they contain per-user settings and SUO (Solution [...]

Read More » »