Is it possible to create a component that behaves like static - each time you put it into the designer's tray it is the same instance of the component
For example, I have a collection of styles, brushes, etc., which is a component. I also have a couple of forms, each needs the collection. I put the collection for each form into it's components' tray. Each time a new instance of the collection is created. I want this collection to be the same instance for each form - a kind of static. Is it possible
Thanks,
truetype

Static component - is it possible?
Vibhu Bansal
As for the rest, thank a lot for you answer :)
withersd
LPXO
Making your class a component so that it can be "added" to a form will not reduce your workload any; you will still have to write code to use its properties, just like you would if it were a singleton class.
The answer to your original question is, yes, it can be done, if you write a custom type converter that can convert your object to an InstanceDescriptor that can be serialized into InitializeComponent. If your goal is to not do manual coding, then that is not the way you want to go.
HaggaiS
Joie Cariaga
LeandroTubia
Fred Reimer