May
9th

6 Useful Visual Studio Tweaks You Need To Know

Posted by Shahar Y |
Filed under .Net, Visual Studio |

Here is a list of 6 Visual Studio tweaks you can do to make your development experience much better:

Show shortcut keys in screen tips:

Go to Tools->Customize and choose the Toolbars Tab. This screen pops up-

image


Continue Reading...
May
6th

11 More Visual Studio Shortcuts You Should Know

Posted by Amit |
Filed under Visual Studio |

Visual Studio Keyboard Shortcuts Since we got so many comments with lots of useful information on our Visual Studio Shortcuts post we decided to use those comments and some other shortcuts we found and compile another list so lets get going

 


Continue Reading...
Apr
29th

A Great Visual Studio Add-on You Must Have

Posted by Amit |
Filed under Utilities, Visual Studio |

Recently I found out this great add-on for Visual Studio 2008 called PowerCommands. PowerCommands Extends the functionality of Visual Studio 2008 by adding some features which we all want built into Visual Studio. PowerCommands provides the following:

My favorite: Copy Reference, very useful indeed, and you all know it, just right click on the reference you [...]


Continue Reading...
Apr
17th

10 Visual Studio Shortcuts You Must Know

Posted by Amit |
Filed under Visual Studio |

This is a list of 10 great shortcuts me and my co workers use frequently, we thought you all should know too. Here they are:

CTRL + “.”: This is actually a shortcut for a shortcut. it is the same as CTRL + SHIFT + F10 which opens the smart tag window and allows you to [...]


Continue Reading...
Apr
11th

Free Tool - Extract Hard Coded Strings to Resource Files

Posted by Shahar Y |
Filed under .Net, C#, Utilities, Visual Studio |

Recently, I ran into a great free Microsoft tool which is called - Resource Refactoring Tool. This tool provides developers an easy way to extract hard coded strings from the code to resource files.
Resource files (.resx files) consists of XML entries, which specify objects and string inside XML tags. Those files can be opened with [...]


Continue Reading...
Mar
22nd

3 Ways to Run NUnit From Visual Studio

Posted by Shahar Y |
Filed under C#, Visual Studio |

Like it or not, whoever wants to have a stable code, need to write unit tests. There are 2 main unit testing frameworks for .Net Environment: MBUnit and NUnit.  During this post, I am going to focus on NUnit and its integration with Visual Studio in particular.                               

Once we wrote our unit tests and compiled them, [...]


Continue Reading...
Mar
14th

How to Get Visual Studio to Create New Classes Public by Default

Posted by Amit |
Filed under .Net, C#, Visual Studio |

This is a good one!
Every one knows that when you add a new class to a project it is private by default, but still when you compile for the first time, the compilation fails and only then you remember to add the “public” before the class name. Tired of this? Here’s what you do in [...]


Continue Reading...
Jan
14th

How to Solve error CS0103: The name ‘InitializeComponent’ does not exist in the current context

Posted by Amit |
Filed under C#, Visual Studio, WPF |

Hi.
Ever had the following error in Visual Studio:error CS0103: The name ‘InitializeComponent’ does not exist in the current context.I sure did…
There’s a very specific reason for this and it’s in the project settingsThis usually happens whenever you try to add a WPF control/window to a .NET 2.0 Class library or project. The reason for this [...]


Continue Reading...
Jan
8th

How to Implement a Generic State Machine

Posted by Amit |
Filed under .Net, C#, Visual Studio |

Hi all.
In the course of my work i was in the need of a State Machine. i decided to implement a Generic version of the State Machine so I can reuse it if i will need it again. i started with defining the needs of a basic state and i can up with the [...]


Continue Reading...
Jan
5th

How to Use Hierarchical DataTemplates - Improved !!!

Posted by Amit |
Filed under .Net, C#, Visual Studio, WPF |

Hi all.
First of all Let me give credit to Shahar A. for showing me this.
As it turns out, my latest post about DataTemplates was not the most efficient way to do this.
I used a different Template for the root and a second one for the all the rest of the data.
What i learned is that [...]


Continue Reading...