Comparing Versions of a .NET Framework DLL Using NDepend

Thursday, September 22, 2011

Following Build conference, many people may ask what is new in the .NET Framework. Well, you could find out by examining the documentation, but then you are limited to what it covers. If you want to know ALL that is new / updated in the .NET Framework, read on.. You can use the following method to easily find the difference between .NET Framework 4.5 and its previous version, .NET Framework 4.0! In this post I will show you how you can use the tool NDepend to compare two versions of a DLL which is...
no comments

Windows 8: What’s New?

Monday, September 19, 2011

Got back from Build conference. Since I expect many people will ask me "So, what's new?" and since the answer is rather complex, I figured I should try to write a post about it, so here goes…   General Information Windows 7 sold (i.e. legal copies) over 450,000,000 copies since it was released. Windows 7 bypassed Windows XP in world usage. Windows 8 will be used primary for tablets and other touch-based devices. Windows 8 can run on Intel-based...
no comments

Order in Chaos: Handling unhandled exceptions in a WPF application

Sunday, August 28, 2011

Introduction So you want to handle somehow all the unhandled exceptions in your application. Usually you want to accomplish one of the following: Log the exception for later diagnostics Present the user an unhandled exception UI, nicer than the default You heard there’s an event you should register, or maybe you find one by mistake, but is it the correct one? Did you know there are four (!) different events for handling unhandled exceptions in the .NET framework? So what is the...

New C# Forum for the Israeli Developers Community

Wednesday, August 17, 2011

Following are some blog news: New Israeli C# Forum I'm proud to present a new MSDN forum in Hebrew for the C# developers community in Israel, managed by yours truly. The forum is available on the following link: To all those nice developers who keep asking me C# related questions by mail, I strongly urge you to post your C# related questions on this forum. NOT because I don't enjoy it! On contrary, I love to help you and would even more enjoy it if even more people...
no comments

WPF: Dictionary Value Converter

Wednesday, August 10, 2011

What’s the story? You want to convert an enum value to a bitmap image. That’s easy, here’s a solution Usually you would simply create a new value converter which has some custom code (e.g. a switch –case statement) to convert from the enum value to the relevant image. Is there a better solution? How many times have you written this kind of converter, the kind that takes a value and maps it to another value? Well, no more! I present to you: DictionaryValueConverter. A Converter that lets you define a collection...
no comments

Windows Ribbon for WinForms: FAQ

Wednesday, July 6, 2011

While working on the Windows Ribbon Framework I’ve came across many repeating questions from users. So I’ve decided to write a Frequently Asked Questions post regarding the Windows Ribbon Framework and its wrapper Windows Ribbon for WinForms. The questions were collected from the Windows Ribbon Development forum, Windows Ribbon for WinForms Discussions and from comments posted on my blog.   What are the supported platforms for the Windows Ribbon Framework? The Windows Ribbon Framework is only supported on: Windows 7 Windows Vista with Service Pack 2 (SP2)...

Spelling and Grammar Checking Plugin for Windows Live Writer

Friday, June 10, 2011

Introduction In my previous post I’ve presented “After the Deadline”, a spelling and grammar checking web service and my .NET wrapper library. This library allows you to integrate spell and grammar checking in your .NET application. The library was written in C# using .NET 4. Also, back in this post, I’ve presented how one can use a .NET 4 DLL from a .NET 2 executable. All of this was just preparations for writing my own grammar checker plugin for Windows Live Writer. Now, I know what you’re thinking.. “Doesn’t WLW already have a spell checker?”...

How To Use a .NET 4 Based DLL From .NET 2 Based Application?

Monday, May 30, 2011

Introduction The official answer is you can’t. Even with the In-Process Side by Side execution (SxS) feature, introduced in .NET 4. The SxS feature was intended to be used when COM is involved. For example, if you got an application that loads plugins, like outlook, and it loads 2 COM plugins, one is using .NET 4 and the other is using .NET 2.0 then it will load two versions of the CLR into the process using the new SxS feature. What if I simply have a .NET 2 application or DLL that needs to access a...

A Customizable WPF MessageBox

Thursday, May 26, 2011

Recently I came across the need to customize the look of the standard message box in the application. To do this I’ve decided to create a new class named WPFMessageBox, which will have the same interface as the standard one, will behave the same way and finally would be fully customizable, the WPF way, using control templates. Following is the result of this effort. Note: In the image you can see an example for a message box customization. Of course you are limited only by your imagination. The default control template looks like the standard...

WPF Single Instance Application – Update

Monday, April 4, 2011

Back in this post I’ve presented some code that make sure you only have one instance of your application. As I’ve said before, I didn’t wrote this code, I just presented it since I came across it in a Microsoft reference application and didn’t want this gem to remain hidden. Microsoft recently released a Windows 7 Recipe named “Windows 7 Taskbar Single Instance”, which despite its taskbar-related name is simply a revised implementation of the single instance feature in both .NET and C++. There are well documented samples for both cases. The credit for this recipe goes...
no comments