.NET Programming

Articles related to .NET programming topics

Drawing Analog Style Clocks in VB.NET

A number of years ago I showed an example of creating a typical digital clock using picture numbers and a little bit of VB.NET code. Fast forward to today and I have decided to show you an example of creating an analog style clock in VB.NET 2012. These types of clocks you may know very well. They are the ones with the hands and the ones your watch is probably ...

Book Review: C# 5.0 In a Nutshell

Today's book review is on C# 5.0 in a Nutshell: The Definitive Reference by Joseph Albahari and Ben Albahari and published by O'Reilly. This book makes up like my 5th or so O'Reilly book and I find the book publisher really publishes smashing hits or hot messes. I never found ones that were in the middle. But not to worry, this book is one of the good guys! At roughly ...

Using Performance Counters in the C# Language

At any given time the Windows operating system is tracking statistics for the system and many of the processes / applications that are currently running on it. Things like the number of processors, how many threads are executing, how often the CLR is in garbage collection, the number of I/O operations being performed etc are all tracked through things called performance counters. One way you can look at these various ...

Help Wanted: Developers Who Are Also Janitors

Once, long ago, I use to be a janitor cleaning up after executives in office buildings as I put myself through school. At the time I would be sweeping the floors as I saw some of those workers crunching through their spreadsheets late at night getting ready for their presentations the next day. One guy I saw did a lot of print shop type of stuff, graphic work, troubleshooting etc ...

5 Quick and Easy Refactoring Tips

You wouldn't believe how many programming questions I run across, on a daily basis, asking for help with programs that contain repetition, duplication and enough spaghetti code to feed half of Italy. Often times the person asking the question has a particular problem but they don't know exactly where the problem originates. So they plop down a bunch of code and say "It is somewhere in there... I think". Usually ...

Stash Data Away in Controls With the Tag Property Using VB.NET

One of the most underutilized properties of any control is a property called "tag". What does it do? Does it cure world hunger? Does it save the planet from annihilation? I would probably say no on both counts, but it does have a bit of a mystique that beginners may not be fully aware of. In design mode of Visual Studio if you select a control, a button or text ...