I have a windows form application that uses a Shared class to house all of the common objects for the application. The settings class has a collection of objects that do thi
in c# it looks like this:
private EventHandler StatusHandler = new EventHandler(eventHandlerCode) void eventHandlerCode(object sender, EventArgs e) { if (this.InvokeRequired) { this.Invoke(StatusHandler, sender, e); } else { //do work } }