Displaying an IIS hosted site in CEFSharp

Thanks to CEFSharp, we can finally bring WinForms to the web! That didn’t sound right. Okay, let’s just look at hosting a site in IIS and showing it.

August 16, 2022

Host a simple webpage in WinForms with CefSharp

WinForms and the web. Like oil and water, they don’t mix well. But with CEFSharp, they mix a LOT better. Let’s check it out.

June 28, 2022

Mocking MessageBox (or any static class) in WinForms

Unit testing a WinForms app is an uphill battle in the best of times, before you add in classes like MessageBox. Let’s make the best of it.

January 7, 2022

Using nameof to avoid magic strings in C#

There’s a lot of ways to make our code work for us. Let’s check out using the nameof operator to avoid magic strings.

December 30, 2021

A more helpful exception box for WinForms apps

If you’re in a legacy codebase with a centralized “message box” form, why not add some features that make it work for you? 😏

December 7, 2021

How to log errors in WinForms using NLog

Logs are a great tool for squashing bugs and tracing errors. Let’s see how to add NLog to our project.

October 9, 2021

Using MVP to test a WinForms app

If you find yourself supporting a WinForms application, you’re likely to notice the tests… or lack thereof. Just because we may not have been so focused on automated tests and continuous integration when WinForms was younger, that doesn’t mean we can’t introduce them now. Better late than never!

June 9, 2021

Using Async, Await, and Task to keep the WinForms UI responsive

Using the async/await pattern in WinForms is an easy win, helping prevent one of the most annoying user experiences - a frozen UI.

June 7, 2021