Attributes are awesome. But is it possible to create a C# attribute class that, when tagged, makes your application minimize to the system tray?
Technically, the attribute would need to be placed on the class of the main form. Once the user clicks on the X button, that form shouldn't terminate, but should minimize to the taskbar. The icon for minimizing should also be specified in the attribute.
Is this technically feasible? I can't find any information on overwriting class code from an attribute placed on that class. (You need to at least overwrite one method to make it minimize to tray.)