Inside of a DesktopContainer, I would like to create a Dictionary that can be used by several of the container’s Controls in their Opening events. Is there a recommended place, a BeforeEverythingEvent inside the container to initialize the Dictionary? I tried the DesktopContainer’s Opening event, but it happens after the Controls’ Opening events. Color_dictionary is a property of the DesktopContainer.
Workarounds:
I settled on making one Control initialize Color_dictionary in its Opening event, but that is no guarantee it will always be the first Control to fire.
Or, every event that needs the Dictionary could just call the same method to initialize the Dictionary…
2 posts - 2 participants