Visual Studio

The PowerShell Conference 2015 Asia

1 minute read

The agenda for the first PowerShell Asia Conference is out! Several excellent speakers have been lined up for this 2 day conference.  Speakers include Jeffre...

Porting a .NET Console App to run on Linux

1 minute read

With .NET 2015, as we know .NET has provided first-class cross-platform support. So if you have a Linux or Mac environment, you could run a ASP.NET website i...

Recording: Continuous Integration with TFS

less than 1 minute read

I had recently done a webinar on DevOps - Continuous Integration with TFS which was organized by Microsoft. If you missed it for any reason, you can watch th...

Using XecMe to host Windows Services

5 minute read

When you are developing server side components using .NET framework, you would either end up having a IIS hosted component (a website, WAS, Web Services (RES...

[Solved] TF400012: Full-text search failed

1 minute read

Error TF400012: Full-text search failed. Contact your Team Foundation Server administrator or try the operation again. (Code 30046: SQL Server encountered...

Optimizing performance of your WCF Services

7 minute read

Performance Optimization process starts when you are provided with Non-Functional Requirements such as Availability, Concurrent Users, Scalability and so on....

Using Directives and Namespace in C#

1 minute read

UsingDirectivesMustBePlacedWithinNamespace is one of the rules of StyleCop and I was trying to figure out why StyleCop recommends having using directives def...

Team Foundation Server : Build Logging

1 minute read

When you use Team Foundation Server for Build Automation, you can configure build controller and agents.  In the Team Foundation Administration Console,...

Team Foundation Server : Build Automation

5 minute read

This article will focus on achieving build automation using TFS.  However, if you want to understand the architecture, configuration, project creation, ...

Recovering your external hard disk data

2 minute read

I recently faced a situation that my external hard disk that I used as a backup drive started giving me bad sector issues.  I ignored the early warnings...

WCF NetTcp Port Sharing on Windows 8+

2 minute read

In Windows 8, when hosting WCF in a managed application running under a normal user privileges and NetTcp binding, you might get an exception Verify that the...

Complete guide to dynamic keyword in C#

5 minute read

The dynamic keyword, a new addition to Microsoft .NET C# 4.0 language, is believed to change the type binding to a variable from compile time to runtime....

Understanding RhinoMocks, NSubstitute and Moq

less than 1 minute read

For those who are following me on Codetails, would know that I am actively blogging (since Nov 2012) on Codetails on all technology stuff.  One of the series...

First Impression of So.cl by Microsoft

2 minute read

  My request for so.cl was accepted by Microsoft and I got an early access to so.cl.  First impression – it’s the Metro version of Facebook + Twitt...

Must-have Tools on Windows - Part 1 of 2

5 minute read

Every technologist has his favourite list of developer tools, applications and OS which they believe are indispensible and without them they would not be abl...

Introducing NoSQL and RavenDB

2 minute read

Since sometime there has been increasing focus on NoSQL databases and RavenDB is one of the front runners in the race for .NET development.  Never heard...

Silverlight Best Practices (Part 4 of 4)

3 minute read

This is in continuation to my previous post Silverlight Best Practices – III, where the focus was what should be and what should not be done while developing...

Silverlight Best Practices (Part 2 of 4)

3 minute read

This is in continuation to my previous post Silverlight Best Practices – I, where I talked about Design Considerations.  These design considerations were a b...

Silverlight Best Practices (Part 3 of 4)

3 minute read

[Republished after additions] This is in continuation to my previous post Silverlight Best Practices – II, where I talked about Business Layer Design Conside...

Silverlight Best Practices (Part 1 of 4)

4 minute read

I have been working on Designing and Development of Rich UI applications on Silverlight, and Windows Phone platforms and high performing applications as midd...

Complete Guide to Lazy Loading in C#

5 minute read

In creating performance-centric applications one has to be very cautious about how and when objects are created and destroyed.  An early creation of an objec...

Using Injectors with CInject

3 minute read

If you don't know what is CInject, I would recommend you to read this article and get the latest version of CInject from CodePlex website. There are few inje...

CInject - Quick Guide

2 minute read

If you don't know what is CInject, I would recommend you to read this article and get the download latest version of CInject from CodePlex website. Creating ...

Windows 8 on laptop in-depth analysis

7 minute read

Having used Windows 8 on one of my laptops for last couple of days,  this article would be toned as an essay of what's there and what's not rather than just ...

WCF Rest Services for Windows Phone

1 minute read

So great, to create WCF Rest services for Windows Phone, you have to follow just 5 steps.  This post will have more code than words, making it neat and to-th...

Creating Page Transitions in Windows Phone

less than 1 minute read

Creating page transitions is not difficult at all when you have Silverlight Toolkit available in market.  So follow the steps written below Step 1: Using Sil...

C# Html Sanitizer for Xaml

less than 1 minute read

One of the converters that my application developerChannel uses is HtmlSanitizer.  The purpose of this converter is to remove the HTML formatting from a HTML...

LongListSelector crashes on load

less than 1 minute read

The LongListSelector loads perfectly on first load; when navigated ahead and back, the application crashes with NullReferenceException Error NullReferenceExc...

Mobile platform - the strongest with .NET

2 minute read

Microsoft .NET has recently emerged as one of the most mature and strongest platforms for Mobile Computing.    Until sometime back, Windows Phone 6.5 was the...

Parallel Programming in .NET 4.0

2 minute read

Which machine do you have? Intel Core 2 Duo, Quad Processor, AMD Turion? All these machines and many more in the market are multi-core machines, but not all ...

Web 2.0 and Cloud Computing

less than 1 minute read

Recently conducted a free session on Web 2.0 and Cloud Computing at NIRMA University, Ahmedabad on 10th April, 2010 Workshop Duration: 2 hours Date & Tim...

Silverlight Interview Questions - I

1 minute read

Hello folks, Marching forward, I will post a series of Interview Questions on Silverlight.  This will cover questions at each level - easy, intermediate and ...

Customizing Splash Screen in Silverlight

1 minute read

Customizing Splash Screen (a screen that loads before the Silverlight application loads) requires some development effort in the host application (could be H...

ClientAccessPolicy Sample

less than 1 minute read

Recently I have delivered a 4-day training session on Silverlight 4 and many participants asked for a sample ClientAccessPolicy.xml file. So this is for thos...

Right Click in Silverlight 4

1 minute read

Let's discuss yet another feature of Silverlight 4 - right click! This was most wanted feature and Microsoft has really blessed the Silverlight world by givi...

Printing in Silverlight 4

1 minute read

Another cool feature that Microsoft has included in Silverlight 4 is the ability to Print any UI Element to any printer and that too, without any complicated...

Certificate Signing in ClickOnce

less than 1 minute read

Why do we need to sign the ClickOnce Deployment using a certificate? Signing the deployment is just another way to ensure that the local version agrees with ...

C# Collections we rarely use: Queue, Stack

less than 1 minute read

There are several Collections supported by C# language, some of which we rarely use in our projects & assignments. Let's focus on two such collections - ...

Loading ResourceDictionary in Silverlight

less than 1 minute read

ResourceDictionary in Silverlight consists of styles, pallates, and other static resources. These static resources - styles - can be bound to UIElements in t...

Silverlight 4 Security Overview White Paper

less than 1 minute read

I came through a wonderful link that focuses on Security with Silverlight 3 and Silverlight 4 applications.  Kudos to Nick, who has explained this wonderfull...

RichTextBox in Silverlight 4

less than 1 minute read

I was trying my hands on Silverlight 4 Beta version and found this is wonderful control - RichTextBox.. This was much needed on Web Platform and Microsoft ha...

WCF Binding - which and when?

less than 1 minute read

A question that boggles our mind and makes us think many times. Which binding should be used when? Let's throw some light on this. Case 1: Interaction with ...

Dynamic Theme in Silverlight 3

less than 1 minute read

One of the features of WPF that we might be keen in implementing in Silverlight is changing the themes dynamically at runtime.  So let us understand how to a...

Floating Container in Silverlight

1 minute read

This is an implementation of a container that can be moved, dragged within the scope of a Silverlight Application.  Currently, the FloatingContainer is deriv...

VectorLight and Silverlight

less than 1 minute read

Lots of tutorials (using OpenSource VectorLight) covering most of the new Silverlight 4 features including the new COM interop functionality allowing your Si...

On Twitter

less than 1 minute read

I am on twitter at http://twitter.com/PuneetGhanshani

ControlStoryboardAction in Silverlight 3

less than 1 minute read

Microsoft.Expression.Interactions namespace ships with an interesting control - ControlStoryBoardAction.  This control can be applied on any Silverlight UI C...

Visifire Charting in Silverlight

2 minute read

Visifire is one of my favourite charting tools in Silverlight. I love playing with it in my free-time at home on my Windows 2003 server machine :) This post ...

Designing a PopUp in Silverlight

1 minute read

Designing a PopUp in Silverlight is one of the common tasks in Silverlight Application Development.  Let's see a code snippet that can help you do that in fe...

Zoom-in and out in Silverlight

1 minute read

I've been asked this ample times at my work place - how to implement a zoom in/out effect on any Silverlight Control. So let us take an example:- You have yo...

Installing IIS and ASP.NET on Vista

less than 1 minute read

By default the IIS on Vista would not be configured. And while publishing using VS 2008, you might face error such as "IIS 6 Metabase and IIS 6 Configuration...

Winform Tip#10: Getting File Properties

less than 1 minute read

Instantiate a FileInfo object with the full path as constructor arg. Then simply call FileInfo.Extension and you will get just the extension of the file.   F...

Winform Tip#9: ColorPicker

less than 1 minute read

Choose a textbox over which we will test this experiment: [sourcecode language='csharp'] ColorDialog colorDialog1 = new ColorDialog(); //fontDialog1.ShowColo...

Datagrid, datalist or repeater

less than 1 minute read

Developers often make a decision blindly - they choose a datagrid over datalist and repeater. But that should not be a case. Datagrid provides ability to all...

Silverlight Toolkit

less than 1 minute read

While the community comes up with the new version of Silverlight Toolkit for Silverlight 3. Let us see how it is installed. When installing, ensure that foll...

Development Tips to increase SQL Performance

less than 1 minute read

These are few tips to increase SQL Performance: An index increases time to perform INSERT / UPDATE / DELETE operations.  So minimal uses of indexes should b...

WCF “k__BackingField” Property Naming

less than 1 minute read

While I was working on a project that involved designing WCF services as Backend layer, I ended up defining a class [Serializable] public class ProgramDetail...

Retrieving GAC Assemblies and Information

less than 1 minute read

Retrieving GAC assemblies and their information.  This was a question posed by one of my colleagues while he was developing a product. Now the answer to this...

Silverlight Host for Sharepoint

1 minute read

The solution attached with the post is a very easiest way to host a Silverlight Application in any Sharepoint site. Ready-to-use component is just 9 KB. You...

GC - Static Class Issues!

1 minute read

Understanding the scenario We were working on a Windows Service for a large US bank when we discovered that there are potential issues while using Static Cla...

JIT vs NGEN

1 minute read

Being a hardcore C developer, I always doubted whether JIT is actually performance centric or not. But guys! It is awesome. Kudos to Microsoft for this wonde...

Finding currently focused control

less than 1 minute read

Good question!  Now, this was a question in one of my sessions at Microsoft Community at Cognizant.  We need to use User32 API's to do this stuff. It isn't t...

Winform Tip#1: Transparent Form

less than 1 minute read

The opacity property enables you to specify a level of transparency for the form and its controls. See the .NET documentation for Form.Opacity for difference...

ASP.NET Best Practices (for Webforms)

4 minute read

This has been pending since long. People have been requesting this information and I've not been able to find time to write on Best Practices. And this fine ...

ComboBox Sorting Defect!

less than 1 minute read

Oops! Never expected this behavior from such a standard control: Winforms ComboBox. One of the common things our applications require is bind a data source w...

Exception Message Box in C#

1 minute read

  Its time to forget the old traditional message box with limited functionalities. buttons, icons, text area and what not! Microsoft has unleashed a new mess...

.NET 4.0 Unleashed

2 minute read

Cities can sleep – but Microsoft won’t let people sleep.  They are back with a bang with their new .NET 4.0 and an improved IDE – Visual Studio 2010 that pro...

Strong Naming an existing assembly

less than 1 minute read

Now this is one problem that we face when we use a 3rd party DLL, which is not-strongly named & we still want to dump it to GAC. So, lets see the 5-step ...

VS 2008 : Plugin Pop-up issue

less than 1 minute read

While adding a pop-up to a plugin, designed in VS 2008, one of the commonly faced problem is: Error 1 The best overloaded method match for 'EnvDTE80.Commands...

DLINQ

less than 1 minute read

DLinq (Data - Language Integrated Query) in .Net is one of the new & powerful feature that Microsoft has introduced in .NET 3.5 framework. Overview of Li...

Bluetooth with C#

less than 1 minute read

Bluetooth Manager has following functionalities: 1. Discovery of devices 2. Finding out MAC address 3. Sending a File through Bluetooth You can search the d...

Ajax with MOSS

less than 1 minute read

Queries asked by almost every MOSS resource: Integrating Ajax with MOSS: http://sharepoint.microsoft.com/blogs/mike/Lists/Posts/Post.aspx?ID=3 Using AjaxCo...

WSS vs MOSS

1 minute read

This article provides a comprehensive comparison of features present in WSS vs those in MOSS 2007. How we nail these features down? This is going to be an ...

Microsoft .NET Interview Questions

less than 1 minute read

This page was first available under the title 'discuz'; however due to several structural changes in the architecture of the site (a move from static to CMS)...

SQL CE - Pros & Cons

1 minute read

The new SQL CE for the mobile applications has some striking features. In this post, let me list some of its advantages & disadvantages: Advantages: Ta...

Date Format in GridView ASP.NET 2.0

less than 1 minute read

One of the common objectives in projects is to display date in M-DD-YYYY format in GridView. The GridView may be bound dynamically from a database, XML, CSV...

Regex: To match C#, Java, VB.Net Comments

less than 1 minute read

Ever worked on removing comments from a C#, Java, VB and VB.Net code? Well, just adding 2 reg-ex to your library... Click Regexlib.com to navigate to the act...

Validation

1 minute read

Let's today understand Data Validation The first principle: Assume no data to be valid. Second principle : The rigidness of your rules will testify the va...

Ajax - what not to do!

3 minute read

Since past two years, I have been involved in consulting services at my organization and have faced several queries on various technologies such as ASP.NET, ...

Only Numbers in TextBox

less than 1 minute read

Requirement: TextBox in C# should accept only numbers as input. Solution: Raise an event KeyPress and paste following line of code. private void txtInput_Key...

Configuring SMTP in .Net

less than 1 minute read

One of the easiest way to configure a mail service on .NET site is to create a SMTP class and call its function SendMail. using System; using System.Data; ...

Server Application Unavailable

1 minute read

Now, this is specially for ASP.NET 2.0 developers, who host web applications on a shared IIS. After deployment, if you have ever received an error message fo...

Dynamically add tags to ASP.NET page

less than 1 minute read

I was creating a web-application for one of my clientele, where I was supposed to add Meta-Tags dynamically to ASP.NET page. This kind of worried me for som...

Debate over iFrames in HTML

1 minute read

Recently, I have been dealing alot in iFrames - the new version of FRAMESET in HTML and while designing web pages, all I look for is - maintainability, platf...

User Context in MOSS

less than 1 minute read

When we open a MOSS site in IE with ‘Run As’ option and log in with an ID/Password other than ‘Windows Logon’, the identity of new ID/Password is persistent....

Capturing Webcam using Visual Basic

7 minute read

While I write this article, I am referring to a real-time system that captures the images when needed through a web cam, placed in one corners of the librar...

Visual Basic - Registry Programming

6 minute read

One of the most required tasks these days for software is to remember the configuration and the settings as changed by the user and function accordingly. Thi...

Visual Basic - Multimedia Programming

10 minute read

Multimedia Programming can be done in two ways; using Multimedia Control or by using various API’s.  We shall concentrate more on using Multimedia Control in...

Visual Basic - Reports and ActiveX Controls

10 minute read

When we store data, we sometimes like to have its report in printed format with the layout as desired by us. This can be achieved by using Data Environment. ...

Visual Basic - File & Database Management

13 minute read

  File Management   A software must be able to store and retrieve the data that user enters while execution of software.  In this article, we shall unde...

Visual Basic - Menus and Advanced Controls

10 minute read

With this article, we tend to look higher with/in Visual Basic.  This article introduces to the reader, the method to introduce menu system, and some ad...

Visual Basic - Fundamentals of VB and IDE

7 minute read

Since ages, Visual Basic (VB) has been the choice of programmers and there are many attributes supporting this.  The first and foremost being the ease with ...