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?
DotNetUser 0 Junior Poster in Training
Lerner 582 Nearly a Posting Maven
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Dani 4,312 The Queen of DaniWeb Administrator Featured Poster Premium Member
Lerner 582 Nearly a Posting Maven
DotNetUser 0 Junior Poster in Training
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
DotNetUser 0 Junior Poster in Training
DotNetUser 0 Junior Poster in Training
pixma -8 Newbie Poster
Salem commented: Good for you, now read this http://www.daniweb.com/software-development/cpp/threads/78223 before you go digging up more corpses. Just hit the +/- next time! -4
Ancient Dragon commented: bumping ancient thread -4
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.