Wriju's BLOG

.NET, Cloud and everything

Visual Studio 2013 : New enhanced scroll bar #7

You will not imagine unless you play with this feature. Scrollbar was never a charm like this After you do this your scrollbar would look like Also you may see the code preview in a popup Alternatively you can get them when you right click to a scroll bar Namoskar!!!… Read more

Visual Studio 2013 : Enhanced “Go to Definition” #3

F12 or Go to Definition is one of the most used features for developers. It was there in Visual Studio 2013 since very long. Now you can either select Alt+F12 or select “Peek Definition” After you select it You go on and on. After sometime you will find a blue breadcrumb Namoskar!!!… Read more

ADO.NET Entity Framework 4.0 : POCO – The Code Only Approach

POCO in ADO.NET Entity Framework 4.0 has been discussed in many places. Here I am not going to talk about it. However, I created a small sample to demonstrate the capability of POCO in much more cleaner “code-only” approach. <<Apology for this blog post issue>>. There were some images, due to which it was not… Read more

Visual Studio 2010 : Dependency Graph, Sequence Diagram and Architecture Explorer

I generally avoid meta blogging, but while going through my MSDN RSS feed I found one very detailed article on few of my favorite Visual Studio 2010 Features at http://blogs.msdn.com/jennifer/archive/2010/05/11/visual-studio-2010-how-to-understand-your-code-using-dependency-graphs-sequence-diagrams-and-the-architecture-explorer.aspx It’s a good read indeed. Namoskar!!!… Read more

.NET Framework 4.0 Newbie : String.IsNullOrWhiteSpace

In .NET Framework 4.0 we have String.IsNullOrWhiteSpace. String sData = ” “;   if (String.IsNullOrWhiteSpace(sData)) {     Console.WriteLine(“Nothing to do”); }   This would help us to determine whether to work with a string without calling additional Trim() method. Namoskar!!!… Read more

.NET Framework 4.0 Newbie : SortedSet<T>

In .NET Framework 4.0 we have a new class called SortedSet<T>. This helps us to sort the elements without explicitly we implementing any sort method. var sSet = new SortedSet<int> { 2, 4, 6, 8, 9, 1, 3, 5, 7 };   //Getting directly the sorted output foreach (int iVal in sSet) {     Console.WriteLine(iVal);… Read more

.NET Framework 4.0 : Obsolete Types and Members

There are a few obsolete types and members in .NET Framework 4.0. This is an extensive reference for those who write code. Obsolete Types in .NET Framework 4.0 http://msdn.microsoft.com/en-us/library/ee461503(VS.100).aspx Obsolete Members in .NET Framework 4.0 http://msdn.microsoft.com/en-us/library/ee471421(VS.100).aspx Namoskar!!!… Read more

Visual Studio 2010 Tips #7 : Dependency Graph

  In Visual Studio 2010 you can now create the dependency graph to view the complex structure of your class and the call tree.       Once you explore it has got some additional view like, Right to Left. If you click on any entity it will take you to the code.    … Read more

VS 2010 Tips#6 : Architecture Explorer

In Visual Studio 2010 we have a great tool called Architecture Explorer to view the structure of our objects. Unlike object browser or class diagram this also helps us to view the calls per element is made in the project. This is one additional step towards the enhancement. This can be found at Namoskar!!!… Read more

VS 2010 Tips #5 : New Extension Manager

In Visual Studio 2010 we can now get all the available extensions from http://visualstudiogallery.msdn.microsoft.com and add to our project from and within Visual Studio. You will find it under Tools > Extension Manager. Here you can add, search and modify the available extensions. Namoskar!!!… Read more

Visual Studio 2010 and .NET Framework 4 Beta 1 Walkthroughs

Watch out the videos on Visual Studio 2010 at http://msdn.microsoft.com/en-us/teamsystem/dd441784.aspx Here are some of them, Ø  Dynamic Programming in Visual C# and Visual Basic   Ø  Office Programmability in Visual C# and VisualBasic   Ø  Test-driven Development with Generate From Usage   Ø  F# in Visual Studio 2010   Ø  Deploying Multiple Office Solutions in… Read more

Immediate Window is missing in Visual Studio Menu

  When you do not see “Immediate” window under Debug menu of Visual Studio you may get frustrated. But there is a quick way to get it when required,   Go to View > Other Windows > Command Window or press Ctrl+W, A   Then type immed. It will bring the Immediate Window.   And… Read more

ASP.NET 3.5 ListView and DataPager : Making RSS Reader

ASP.NET 3.5 comes with bundle of new data bound controls. Among them ListView and DataPager are the ones I am going talk here. To me ListView is the enhanced from of DataRepeater. It has got everything you might need to create an app with your HTML/CSS skill set. Today you often visit blogs and you… Read more

ADO.NET and Data Articles by John Papa

Many of you might be following John Papa’s article on Data and related topics. Myself have came across many of his and are still following. I would like to share a list of articles by him published in MSDN Magazine and available online for you. Data Points: Designing an Entity Data Model With the Entity… Read more

LINQ to Entity : Supported and Unsupported Methods

There is a correction for this Post, so do I have changed the title. Thanks to Chris Love who pointed me the faults with earlier post, I got few question on some of the popular paging methods of LINQ which does not work on LINQ to Entity. This is by design and quite logical. In… Read more

Windows Forms – Enable Shortcut Key all over the Form

Windows Application and shortcut key are synonyms. People prefer to use shortcut keys for faster activity. Assume you are in a text box and you want to hit F5 to reload the form. You do not want to move your mouse cursor. So what you will be doing is that you will be adding “Key… Read more

Programmatically invoking the Live.com search

Live.com you need to automate that in your Windows application. You will use the WebBrowser control. This is a very powerful control and allows us to control things through DOM. Here is a small code which insert values to the live.com’s seach text box and clicks the “Go” button. I have created a windows forms… Read more

How to copy my snippet in Visual Studio 2008

I use Visual Studio 2008 code snippet a lot when I write code for my presentation. It saves a lot of time and it is very elegant. But I used to struggle a lot while changing my demo machine. Because I had to repeat the same process again and again from Tools > Snippet Manager,… Read more

ZoomIt : Fantastic Windows Zooming Application

When I show demo using my desktop I often come across to the scenarios where things are very small. I was using Windows Magnifier. I found this tool later and this is very helpful. This tool was created by Microsoft Technical Fellow, Mark Russinovich. Some facts, Ø  ZoomIt runs on System Tray Ø  Allows you… Read more

Visual Studio 2008 : How to zoom Class Diagram

During my demos I have noticed that Class Diagram in Visual Studio gives a very detailed view with lot of information. Now this is hard for people sitting at the back of the room to see what is there. It’s very easy, if you press “CTRL” then scroll the mouse, this will zoom in and… Read more

What do I have to do if I install IIS after Visual Studio

What happens if you install you Visual Studio then realize that you need IIS for you application to test and run. We often do this. I have seen people uninstalling Visual Studio and then installing it again after IIS to make sure ASP.NET works fine. Wow!! There is an easy way to do it, Open… Read more

How to find public key token for a .NET DLL or assembly

Many times we need to get the Public key token for a strongly named assembly in .NET. FAQ on that “how to get the public key token?”. Answer is very simple use the .NET Framework tools sn.exe. So open the Visual Studio 2008 Command Prompt and then point to the dll’s folder you want to… Read more