Until .NET 4.0, it was impossible to reliably create Windows Shell Extensions using .NET code. With improvements to the framework, it is now possible to use .NET to create these extensions. In this article, I'll show you how to quickly create Shell Context Menus as a C# class library.
Here is a small snippet which will count the certain char in given string.
Here is a small snippet which will get the pressed char at keydown event. Sometimes we need to get Char at key down event rather than keypress event.
We need a class that has only one instance, and we need to provide a global point of access to the instance. We may also want to make sure that our solution is thread safe.
Many times we need to know executable path of Application and some time we need to know the path of assembly which is loaded. There are many options to get the location but not all are good as we think.