Exception Handling the nice way

I’ve knocked up a simple project that demonstrates a few things, namely: Avoiding file locking issues when writing to a logfile using recursion Dealing with Unhandled Exceptions globally Writing this data to a local log file The source code is…

Erect

Erect Originally uploaded by SimonAntony.co.uk I love the serenity of this, it’s so obscure this tower sat in the middle of nowhere – in fact when the tide comes in, it laps at the edge of the green grass, even…

What type of drinker are you?

Apparently the british government have determined that there are nine types of drinker – excerpt from the BBC website: Drinkers fall into ‘nine groups’ The government believes it has identified nine types of heavy drinker as it launches a new…

Get your local machine/computer name in c#

Four ways to get your local network/machine name: string name = Environment.MachineName; string name = System.Net.Dns.GetHostName(); string name = System.Windows.Forms.SystemInformation.ComputerName; string name = System.Environment.GetEnvironmentVariable(“COMPUTERNAME”);

Need to left click on a NotifyIcon?

I’m working on a client/server application that uses touch screens for user input. The app uses the NotifyIcon class to minimise the app to the tray when not required with a ContextMenuStrip to handle right click operations, herin lies the…

Determination

Determination Originally uploaded by Infinerty I was on a short weekend break at the end of August in Licolnshire, England visiting relatives when I noticed a road race going right past where we were visiting………….