A couple of weeks ago I was working on a component to use & generate html help files. The idea was to drop a component on each form where it would do it’s work:
- Generate files for Microsoft’s HtmlHelp Workshop when executed from Visual Studio.
- Show all kind of context sensitive help when executed outside Visual Studio.
During the writing I needed an Enable property visible in the property inspector of Visual Studio that was global to all instances of my component.
I used the following (simple) construct:
This code shows a Enabled property in the property inspector, but when the value is of a single component instance is changed, the changed value in all other instances too.