This blog has moved!!!

I have moved this blog and all my next blogs shall publish on –

Thank you!



Posted in Uncategorized | Leave a comment

How is this blog doing?

The stats helper monkeys at mulled over how this blog did in 2010, and here’s a high level summary of its overall blog health:

Healthy blog!

The Blog-Health-o-Meter™ reads This blog is doing awesome!.

Crunchy numbers

Featured image

A Boeing 747-400 passenger jet can hold 416 passengers. This blog was viewed about 7,800 times in 2010. That’s about 19 full 747s.

In 2010, there were 5 new posts, growing the total archive of this blog to 23 posts. There were 2 pictures uploaded, taking up a total of 110kb.

The busiest day of the year was December 17th with 50 views. The most popular post that day was How to draw a custom border around a form or control?.

Where did they come from?

The top referring sites in 2010 were,,,, and

Some visitors came searching, mostly for how to draw a border, winform drag and drop, c# custom border, c# draw border, and cool borders to draw.

Attractions in 2010

These are the posts and pages that got the most views in 2010.


How to draw a custom border around a form or control? March 2007


A Simple Drag Drop in WinForms February 2007
1 comment


Exploring MSIL – Properties October 2007
1 comment


Exploring MSIL – Delegates and Events October 2007


Exploring MSIL – Static and Instance Methods October 2007

Posted in Uncategorized | Leave a comment

Visual Studio 2010 – Quick Navigation Shortcut

VS 2010 allows quick navigation by pressing the shortcut keys – Ctrl + , . This bring up the dialog box that displays the class names, method names and the field names. I can type the name of the class / field / method and the dialog shows the class / field / method that matches the name.

For example, searching for ‘Grid’ in my sample project returned the result shown below.


Another trick is to type only the capital letters in the name of the class / field / method in the ‘Search’ above. For example, ‘GridView’ can be searched by searching for ‘GV’ as shown below.image

Posted in Visual Studio 2010 | Leave a comment

Automated UI Testing in VS 2010

UI testing is repetitive and time consuming. VS 2010 has added ‘Coded UI Test’ that allows us to create automated the UI test cases. This can save a lot of time and help in doing quick BVT (Build Verification Test). The following walkthrough demonstrates how to create automated UI tests using VS 2010.

Step 1: Create a new Test project in VS 2010

Lets begin by using File –> New Project menu item in VS 2010 to create a new Test project.


Step 2: Add a new Coded UI Test file to the project
Right click on the project and choose ‘Add –> Coded UI Test’ menu item.


This will add the necessary references to the project and bring up the ‘Generate Code for Coded UI Test’ dialog box.


Select the first option – ‘Record actions, edit UI map or add assertion’. This will bring up the recording screen at the bottom right of the screen. Click the red button to start the recording.


Step 3: Record the steps of the automated UI test

I will go to the Yahoo home page and browse to different pages.


Stop the recording and generate the code for the test by clicking the last button on the recording screen (shown in red border).


Step 4: Run the automated UI test case

Run the test case by clicking on Test –> Run –> All Tests in Solution. This will open the Yahoo home page and browse as per the recording done in the last step.

Make sure that the web browser is open before running the test case and you don’t change the mouse focus or press keys once the test case has started to run.


Posted in Testing, Visual Studio 2010 | 1 Comment

HTML 5 – The Future of Web

HTML 5 specifications are work in progress. Some of the important points about the HTML 5 as it’s specifications stands today are as following.

  • New features in HTMl 5
    • Canvas
    • Audio
    • Video
    • Markup elements – Article, Section, Nav, Figure, FigureCaption, Address, Header, Footer
  • SVG – Vector graphics come into play, scales up well
    • Shapes
    • Paths
    • Text
    • Transforms
    • painting, Filling, Color,
    • Scripting
    • Styling
    • Gradient, Patterns
  • CSS – Improvements
    • Selectors
    • Border Radius
    • Backgrounds
    • Color, Backgrounds
    • WOFF Fonts
    • Box Shadow
    • 2D transform
  • ECMA Script – Lots of new methods like, string.trim.
  • showcases the websites built with HTML 5.
Posted in HTML 5 | Leave a comment

JavaScript to Hide and Show ASP.NET Control

This blog talks about how to hide / show an ASP.NET control using JavaScript. Let the ASP.NET control ID is myControl and it is hidden on Button click with ID myButton.

1. Write the following JavaSript .aspx page–> Head –> Script to hide and show the ASP.NET control named myControl.

function Show() {
            document.getElementById("<%= myControl.ClientID %>").style.display = "";

function Hide() {
            document.getElementById("<%= myControl.ClientID %>").style.display = "none";

2. Say we hide the control on a Button click. Add the following code in the .aspx page.

protected void Page_Load(object sender, EventArgs e)
        this.myButton.Attributes.Add("onclick", "Hide()");

3. In case the control is invisible when the page first loads, use the following.

protected void Page_Load(object sender, EventArgs e)
        this.myButton.Attributes.Add("onclick", "Show()");
        this.myControl.Style.Add("display", "none");

Posted in ASP.NET, JavaScript | 2 Comments

Word wrap in Visual Studio 2010

Word wrap is a very helpful feature that is used often in Notepad. Visual Studio 2010 provides the same feature by setting the Option from Tools –> Text Editor –> All languages –> Settings –> Word wrap.


This can be quickly achieved by keyboard shortcut – Ctrl + E, Ctrl + W. Now that is delighting the users! 🙂

Posted in Uncategorized | Leave a comment