Winforms: improving rendering performances with BackgroundImage and BackgroundImageLayout

Even after years you always have something to learn...this time I had a windows forms application with a lot of graphics in it: big and heavy background images, graphic buttons with transparent background, mixed bitmaps, Jpegs and PNGs...the whole th


Castle NHibernate Integration Facility: how to get the configuration object

This is a simple tip, I’ve used the Castle Windsor NHibernate Integration Facility to build up the data access services in one of the projects I’m working on, I also wanted to use the NHibernate SchemaExport utilities to build up the database from sc


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...


ASP.NET - Tagging and Hiding the columns of a GridView

This is a simple trick that came into my mind working on a legacy ASP.NET application, the scenario is: we have a series of components that use a GridView to show some data, each GridView have several columns and according to the situation some...


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...


How to migrate a Windows XP installation from an IDE to a SATA hard drive

These days I made myself and my bro a ‘Christmas Gift’ and I bought a couple of 10k rpm hard drives to give our systems some speed up. In my childlike mind I thought: migrate the system will be easy..just clone the HD data to the new one, maybe...


Using Regular Expressions to identify possible bugs in code

In the past few days I was moved to analyze some legacy code from a huge web application written by a company I work with. I have to write some new modules to integrate in this application; but while I was reviewing the code to ‘learn’ the styl...


Missing .NET Performance Counters: how to solve it

Today I’ve started to profile my applications to try to see if I have some memory leaks and performances bottlenecks. I just started the inspection trying to look at some performance counters (especially to check if the memory allocated by my ...


svchost.exe (LocalSystemNetworkRestricted) 100% Hard Disk usage

Today on of my Vista developing workstations suddenly became very slow, the CPU was almost free and its usage was around 3-5%, the Hard Drive instead was overloaded with work, with its activity at 100% all the time. Trying to do any operation o...


VSeWSS: Unable to start debugging.The web server is not configured correctly

If you ever tried to debug a SharePoint WebPart project created with VSeWSS, you might have faced this problem, and like me you might have lost a lot of time trying to check the IIS configuration following one of the many guides you can find ar...


 1 di 3   1  »  Last »