To explain my issue, I will try to screenshot this instead so that I can relay my message to everyone. Here on the picture, I have main project namely MainWinForm and and Solution Folder which contains two Windows Project namely FirstWinFormApp and SecondWinFormApp.
Here is the screenshot:
The MainWinForm project contains a Form1.cs which is an MDI Container set to true. I am trying to launch the form (First.cs) from FirstWinFormApp project using the button click event handler.
Everything should be working fine. I can launch the First.cs form inside the MDI Container of Form1.
Now here is the tricky part, I want to run the Program.cs of FirstWinFormApp instead the Program.cs of MainWinForm. The reason behind this is my requirement on my project (assemblies, connections, etc).
When I launch the application, the Program.cs of MainWinForm project is triggered. When I call the child app, its Program.cs is not called anymore. Is it possible that I can call the Program.cs of the child application (FirstWinFormApp) even though the Program.cs of the MainWinForm project was already called?