Tag Archives: c# 5

Shared stuff updated

No new code shared, I’m afraid, but I have continued to update my image that I use for a custom logon background in Windows 7 (which I am still using at work). The feature does not work in Windows 8, … Continue reading

Posted in Programming | Tagged , , , | Leave a comment

Caching in a desktop application using ObjectCache and LocalDB

Last Wednesday I decided to convert my application’s caching from a file-based cache to a database-based cache implementation, mostly to try out LocalDB, which I had never used before. Unfortunately, due to power outages after that, I could only test … Continue reading

Posted in Programming | Tagged , , , | Leave a comment

Improving performance in Windows Forms by temporarily suspending redrawing a window

Sometimes the default way a window gets redrawn wreaks havoc with our code that’s updating the window, because the window gets redrawn at some point(s) when we have made some but not all of our changes. This can cause anything … Continue reading

Posted in Programming | Tagged , , | Leave a comment

A custom TaskScheduler in C#

Yesterday I expressed my confusion around TaskSchedulers. I was struggling with wondering what happens when I have several different TaskScheduler implementations in my application. Actually, this is a non-issue. A TaskScheduler is just a simple abstraction for a low-level object … Continue reading

Posted in Programming | Tagged , , | Leave a comment

Async Tasks and cancellation – Not always so easy

A while ago, I explained briefly how I asynchronously populate and cancel thumbnails in the file browser form of my application. But cancellation turned out to be more difficult than I initially thought. That is, if I changed the current … Continue reading

Posted in Programming | Tagged , , , | Leave a comment

Async all the way – No way!

I was just reading an article by Stephen Cleary on best practices in async code. I haven’t fully composed my thoughts on this topic, but this has been on my mind for a while, so I will publish it anyway, … Continue reading

Posted in Programming | Tagged , , , | Leave a comment

Building your c# Solution with MSBuild, the easy way

Everything in this post should be obvious to any c# developer, but sadly for whatever reason, people just don’t seem to know these things. The key to improving your knowledge, and to prevent asking stupid questions on sites like StackOverflow, … Continue reading

Posted in Programming | Tagged , , , | Leave a comment