IT Technology Blog

IT technology blog, featuring the essence for you to read the article, is to learn IT technology blog first choice

SingleInstance(Of T) Class for Windows Phone 7

This post aims to provide a way to implement lazy initialization in a multi threaded environment using the SingleInstance(Of T) Class. When building applications for a mobile operating system su

Are interfaces evil or misused ?

There are several considerations and practices concerning interfaces Some developers say that interfaces can be used as a replacement of multiple inheritance mechanisms, which cause complexity and a

Adapter Design Pattern

You can see this and other great articles on design patterns here. The Adapter Design Pattern allows you to make an existing class work with other existing class libraries without changing the code o

WPF Localization Using RESX Files

Download source code - 184.62 KB Introduction For developers used to the integrated, inbuilt localization support for Windows Forms applications, the Microsoft approach to localizing WPF applicat

Creating a Code First Database Initializer Strategy

Introduction Yesterday I helped a colleague with his ASP.NET MVC 3 site deployment. That colleague implemented the data access layer using EF4.1 Code First. One of the restrictions that he had was

Creating a Bilingual ASP.NET MVC3 Application – Part I

Download InternationalizedMvcApplication - 507.26 KB Download InternationalizedMvcApplicationRazor.zip - 513.32 KB

SQL Query Run Time Estimation

A followup to a post about subqueries with an estimation for how long it would take for the query to run. In a recent post about subqueries, I compared 4 queries and how they handled 4 million rows o

Progress Indicator - Customizable

Download Demo - 12.3 KBDownload Source - 20.47 KB            Introduction  This article demonstrates creating a progress indicator control, usually used

AI- Simple Implementation of Uninformed Search Strategies

Introduction This article helps the beginner of an AI course to learn the objective and implementation of Uninformed Search Strategies (Blind Search) which use only information available in the prob

A Customizable WPF MessageBox

Download source code Recently, I came across the need to customize the look of the standard message box in the application. To do this, I’ve decided to create a new class named WPFMessageBox, whi

Using Patterns to Reduce Compilation Dependencies in Large Scale C++ Project: Factory Pattern

Download PhysicalFactory source - 6.39 KB Download PhysicalFactoryClient source - 7.34 KB Download PhysicalNonFactory source - 5.63 KB Download PhysicalNonFactoryClient source - 9.42 KB 1. Introd

How To Use a .NET 4 Based DLL From .NET 2 Based Application?

Introduction The official answer is you can’t. Even with the In-Process Side by Side execution (SxS) feature, introduced in .NET 4. The SxS feature was intended to be used when COM is in

A Chat Server/Client Solution for Local Networks

Download client app - 10.57 KB Download server app - 9.65 KB Download source code - 68.53 KB Introduction Before talking about the code, there are a couple of things that I want to point o

Inserting Video Media into a Web File via Expression Web 4

Download example - 3.84 MB Inserting Video Media into a Web File via Expression Web 4 Strictly an Article for the Beginner This article will present a simple way to embed a Windows Media Player int

WPF Layout by Content

You can see this and other great articles here. The best practice of laying out the controls is to let WPF do the sizing for you as much as you can, so that other controls around it don't need to be

Parameters Flexibility When Late Binding to an Event

Download source - 78 KB Introduction .NET allows binding to an event with a method that has a different signature than that of the published delegate, as long as the return type and the parameter t

Learning to Like LINQ or, Loving the LINQ Loquacious

Once upon a time, long, long ago, I was working at a company that gave their engineers some shiny, state-of-the-art, new-fangled HP calculators. They were awesome; instead of battery-draining LEDs for

Small Research on Exporting Data to Excel

Introduction In our normal programs, the requirement of exporting data to excel is very usual. I’ve summarized some basic skills in an article in Codeproject. And right here, I want to specialize on

OAuth using Scribe with Yahoo API

This is sequence of my previous post but now with Yahoo. I have downloaded Scribe example source code to get authenticated with Yahoo. But the default example was not working. After several hours of

StringBuilderPlus Improves Upon StringBuilder

Download source code - 19.73 KB Download demo app - 8.57 KB Introduction The above image shows that to concatenate about 40,000 strings in C# takes about 3 seconds. With the StringBuilderP