Copy from WPF Datagrid

I´ve used the WPF builtin Datagrid for presenting data easily in like tooling applications and such. Problem is, sooner or later you´ll find yourself wanting to copy that darn data to excel or a mail. I´ve been struggling with this and found some quite poor ideas on...

Dangerous cache

Caching is good. Generally speaking that is. However when applied to a legacy system without regard to the actual system, well then it might lock your users out 🙂 Frankly I´m quite suprised we didn’t see worse scenarious. The case We´ve got this site previously...

Converting binary data to text in TSQL

By some legacy reason xml-text is currently being saved as pure binary data in a system I´m maintaining. More than often we need to check this xml data to see if everything is as it should and every single time I stumble on how to do this, can’t seem to keep it...

Select on on TextBox Focus

For once I´ll ramble less and provide more 🙂 A simple class to help you make the WPF TextBox able to select the text when it gets focus. I´ve gotten tired of subclassing all the time so this is a neat little class that you can just attach to any TextBox-control. The...

Concurrent client connections in C#

Lately, I´ve been working some with performance testing and opposite to what I think most performance-gurus would like I´ve ended up writing my own tools for this. Yes I know I´m reinventing the wheel but the way our services are build I think this is easier. Anyway,...