MSI: a simple Delete Files Custom Action

Reviewing the Install/Uninstall process I’ve created using the standard Visual Studio Setup Project template, I’ve noticed that some files were always left on the installation folder after a complete program uninstall sequence. The default behavior


Passing a Delegate to an Attribute: a simple workaround

Working on a very simple DataForm control for Winforms I had the need to pass a function delegate to an attribute that qualifies a property to generate a ComboBox on the UI. The function was mean to be used as a way to retrieve the set of values you


Silverlight / WPF: is it possible to bind to an explicit interface indexer implementation?

The WPF binding system allows you to bind to Indexers and properties and it also have a nice feature that allows you to bind to the explicit implementation of interfaces’ members, allowing you to resolve possible ambiguities if the properties have th


Silverlight / Castle Windsor – how to use a logging framework properly

In my last post I shown you how to build a simple logging framework for Silverlight applications and use it with an IoC container through ‘constructor injection’, well…in my opinion I consider that a bad programming practice. In short when using a De


Css and JavaScript file minification

Performing the minification of your custom JavaScript and Css files is usually a good practice to follow when deploying your website in a production environment, but this usually makes doing ‘on the fly’ and ‘live’ modification to those files nearly


Optimizing WMI query performances - avoid the nasty ‘select *’

These days I’m working to improve the startup time of an application my company develop, using some profiling tool you can easily isolate that functions that are eating up more time during the application startup. Aside the database connection...


A very dirty trick to open a Popup after a PostBack operation

I’m not very proud of this cause it indicates a very poor interface design, but in a legacy project I’m working on we had the following scenario: 1- the user interact on some elements of the UI 2- the user clicks a button, at the PostBack ope...


Windows Forms: Closeable TabControl

Today I needed to modify the UI of an application built by my company to enable the support for a multi-tabbed document interface (like the standard Visual Studio interface); since there’s no default support for displaying a close button (or co...


WSS / SharePoint: adding filtering capabilities to the CustomListViewWebPart - Filter Chain Fixed

I had a lot of good feedbacks on that SharePoint filtering articles series, the guys that wrote me spotted on a nasty bug on how I was building the chain of filters in CAML.In my code I did something like: <or><eq>...</eq><...


Create an EML file the easy way

Many email readers (like Windows Mail, Outlook, Thunderbird...) use this format to store emails in files; I needed an easy way to create those files to send emails using the default email program the client has configured on his system. Lookin...


 1 di 3   1  »  Last »