A common error always pop up when you run your .NET Application just like the following : Error Details: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. The reasons and resolutions: These are different solutions due to different case, Here I collect some of them [Read More ...]

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

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

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

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

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

Copied explanation from Microsoft official site:Solution Files (.sln and .suo) Visual Studio uses two file types (.sln and .suo) to store settings specific to solutions. These files, known collectively as solution files, provide Solution Explorer with the information it needs to display a graphical interface for managing your files. They allow you to concentrate on [Read More ...]

© 2012 CodeEase.com Suffusion theme by Sayontan Sinha