.NET

Shell Script to setup .NET on Linux

1 minute read

If you are scared by the tedious process of setting up Mono, KVM and KRE on Linux or are not aware of how to get started with it, here is your lifesaver - a ...

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

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

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

Webinar: Features of .NET 4.0

less than 1 minute read

Today, I delivered a Webinar on 'Features of .NET 4.0' Total duration of webinar: 1 hour Total participants: 200 Take away from the session: Features of .NE...

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

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

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

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

Winform Tip#7:Browser within Winform

less than 1 minute read

WebBrowser control can be used inside a form to display HTML contents and listen to events such as NavigateComplete or BeforeNavigate Use of ActiveX wrappers...

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

Winform tip#6:DataGrid vs DataGridView

less than 1 minute read

DataGridView is an enhanced version of DataGrid.  Some of the features lacking in DataGrid are: Multiple column types Multiple ways to display data Multiple...

Winform Tip#4: Deployment in Winform

less than 1 minute read

Best way to deploy is by using ClickOnce deployment. This allows user to get regular updates, patches to the product while conforming to the security standar...

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

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

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

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