I launch 2 programs within my application with PROGRAMNAME->Show. Let's call them Prog1 and Prog2. I have a dummy form that I use Application::Run to keep the software running. When 1 of the program closes, I call Application::Exit to shut down the application. This doesn't allow the other program to call Form_Closing. I want to disable the X in the upper right corner of Prog1 so that the user is forced to close using Prog2. Or, is there a way to call the Form_Closing event of Prog1 when Prog2 gets the X?
Be a part of the DaniWeb community
We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.