September 1, 2010, 10:51 am
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 » »
September 1, 2010, 10:06 am
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 » »
August 28, 2010, 10:39 pm
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 » »
August 27, 2010, 1:50 pm
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 » »
August 25, 2010, 12:04 am
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 » »
August 24, 2010, 11:56 pm
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 » »
August 24, 2010, 1:04 pm
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 » »
August 24, 2010, 1:45 am
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 » »
August 23, 2010, 9:57 am
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 » »
August 23, 2010, 9:06 am
.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 » »