Im creating a level editor application designed in a MDI project. The application have to main view modes. WorldEditor mode and ObjectEditor mode. Depending on what type of mode form is active I want a separate property window to show a property setup specific for either world or object mode. For this I've thought of using the 'Activated' event on the world or object form, and from that event tell the property form to load the setup for either world or object. For this I need to reach the PropertyForm from within the World or Object Form class. And thats where I'm stuck...
I belive I should solve this by either declare the Property Form class as static since I only use one of it's type and I want to be able to reach it globaly. But declaring a form class as static gives me compiler errors, so I'm doing it wrong if it's even possible to do.
I assume that there also is an easier way to reach and search for different forms that is active in the application, but how do I do that?
Thanks for any suggestions or feedback Best Regards