Pessimists, we're told, look at a glass containing 50% air and 50% water and see it as half empty. Optimists, in contrast, see it as half full. Engineers, of course, understand the glass is twice as big as it needs to be. --Bob Lewis

Posts in developer


Convert Hex String to .NET Color

Learn an easy way and a hard way to convert a hex string to a .NET color using C#. Continue...

Developer Tips and Tutorials C# CSS HTML

Convert .NET Color to Hex String

Learn how to convert a hex string to a .NET color using C#. Continue...

Developer Tips and Tutorials .NET C# CSS HTML

Set Initial Focus on an ASP.NET Page

Here's a C# snippet to set the initial focus when a page loads. It takes into account some of the quirks with different types of controls and HTML elements. Continue...

Developer Tips and Tutorials C# Javascript Web

C# StyleHelper Class

While CSS is the preferred way to manage webpage styles these days, sometimes it's helpful to manage those styles programmatically. Continue...

Developer Tips and Tutorials C# CSS

C# RandomProvider Class

I provide a class, RandomProvider, which provides random numbers for several of the .NET data types and based on statistical distributions. Continue...

Developer Tips and Tutorials .NET C#

Version: 5.1.20200306.0422