Exception error codes

A practice I have engaged in for a long time now is adding error codes to any custom or handled exceptions that are thrown on purpose in anapplication. The purpose of these error codes is to act as an...

A very simplistic explanation of events in C#

Introduction If you just want to see the code involved, go to the end of this article. I am really writing this for myself because on the rare occasion that I have to rely on events for something, I a...

Custom Controls in ToolStrip or StatusStrip

This is not something I have had to deal with too often which is why it wasn’t apparent to me the first time around. FACT: You cannot drag and drop a custom control or any System.Windows.Form.Co...