Get a Movie's Details From IMDb

A while back when I was developing MoviePlay (a movies database) I wanted to allow the user to get the movie's details from IMDb (The Internet Movie Database) instead of having him/her enter it manually. …

How to Get a Web Application's Directory Path in ASP.NET

I found this question asked a lot in forums so I thought I should answer it here. Getting the physical path of the website can be done using Request.PhysicalApplicationPath. The following code also lists the …

Taking Thumbnails of a Website

I always wondered how web directories take thumbnail snapshots of my blog when I register with them. And yesterday I had some free time to find out how it could be done in C#. I …

6 C# Blogs Worth Following

Here is a list of C# blogs worth checking out every now and then.

Malicious Visual Studio Code Snippets

Although such threats are not common, but a developer can create a malicious Visual Studio code snippet in three different ways. The first is of course writing the malicious code straight into the snippet's code …

Starting and Stopping the ScreenSaver

Starting and stopping the screensaver in C# can be done by calling the Windows API's PostMessage function, which posts a message to the Windows Message Queue asynchronously. Starting it is straight forward. But stopping it …

Dictionaries of HTML Codes

I wrote this class to help me do some screen scraping programs. It has two Dictionary objects. One contains the HTML codes and their text equivalents and the other contains the numeric HTML codes and …

What are Code Snippets in Visual Studio

Code Snippets are ready-made snippets of code that can be inserted in your code. They improve the developers efficiency and accuracy because they reduces typing and help code reuse.

Installing the AJAX Controls Toolkit 3.5

The AJAX Controls Toolkit is an open source toolkit developed by Microsoft and the ASP.NET community. The latest version is for .NET 3.5 and it contains 38 client side components used to create Rich Internet …

Capturing Outlook 2007's New Mail and Reminder Events

Visual Studio 2008's Outlook Add-in projects allows you to create add-ins that can customize almost any feature of Ms Outlook. Two useful events that can be captured are ReminderFire and NewMailEx. The first occurs before …