All kinds of post concerning Software Development

Converting Certificate to use CSP Storage Provider in stead of CNG Storage Provider

By remyblok on Thursday 21 May 2015 16:41 - Comments are closed
Category: .Net / C#, Views: 7.838

Certificates are used all over the world nowadays. And during development you often need to work with them. Certificates are also used to sign code, i.e. to add a verification to the exe/dll/msi that the file has not been tempered with and is an original from the creator of the software. This is called Authenticode. I have had multiple instances where the certificate that was to be used for Code Signing was a not compatible. This blog explains how to make it compatible.

Read more »

Start all Command Prompts as Visual Studio Developer Command prompt

By remyblok on Thursday 23 October 2014 17:17 - Comments (6)
Category: .Net / C#, Views: 6.385

When developing you often need to use the Command Prompt (cmd.exe) to do something for which there is no easy UI. Visual Studio and Windows SDKs include many CLI applications. It also includes the Visual Studio Command Prompt. This command prompt calls a script that sets all kinds of environment variables so that the CLI apps can be easily started.

Read more »

Caching deferred executed LINQ query

By remyblok on Tuesday 6 March 2012 22:17 - Comments (5)
Category: .Net / C#, Views: 6.006

When using LINQ extensively you'll eventually encounter the benefits and the cruelties of deferred execution. When not used correctly it can have a serious performance impact. In this blog I will give a method that combines the benefits of deferred execution with the safety of direct execution.

Read more »

WPF Combo box with empty item using .Net 4 dynamic objects

By remyblok on Thursday 27 October 2011 11:56 - Comments (1)
Category: .Net / C#, Views: 12.037

From the moment I’ve stated to use WPF I have struggled to get a selectable empty item in a combo box. This is not something that WPF supports out of the box. I had sincerely hoped they would fix this in WPF 4.0, but unfortunately they did not. They did give us dynamic object, which makes the task a lot easier that it was in WPF 3.5.

Read more »

Win7 Recent Jumplist without associating a filetype

By remyblok on Sunday 29 May 2011 15:23 - Comments are closed
Category: .Net / C#, Views: 7.092

I was trying to add Windows 7 Jumplists to an .Net 3.5 application. I wanted to add a list of recent opened files. When using .Net 4.0 there is native Framework support in System.Windows.Shell

When interacting with Windows 7 features I always use the Windows Api Code Pack. It's a library containing all kinds of functionality that is not a part of the .Net framework, but can be reached through the Win32 api. Jumplist support is one of these features.

Read more »