0

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?

5
Contributors
9
Replies
11
Views
10 Years
Discussion Span
Last Post by pixma
0

This is dependent on the platform you are writing your program for, Windows/Linux/Mac. There are forums for this indiviual platforms if you go to the forum index and scroll down a ways. You may get an answer here, but you are much more likely to get a response in the forum for the specific OS you are writing for.

0

This is dependent on the platform you are writing your program for, Windows/Linux/Mac. There are forums for this indiviual platforms if you go to the forum index and scroll down a ways. You may get an answer here, but you are much more likely to get a response in the forum for the specific OS you are writing for.

Actually, our Windows, Linux, and Mac forums are geared more towards end-user technical support, so this is the place to be if you're looking for programming help.

0

I stand corrected. Supply the operating system/platform target and compiler information and hopefully someone with knowledge appropriate to that combination will be forthcoming.

0

The target OS is Windows XP and I'm using Visual Studio .NET 2003. My code is being written in VC++.NET.

0

I believe that you're talking about FormBorderStyle. There's None that doesn't have the X, but this doesn't suit my needs. I need a form that can be resized.

0

Form property ControlBox is the one. When set to false, it hides the MIN, MAX, and Close buttons.

-2

Form property ControlBox is the one. When set to false, it hides the MIN, MAX, and Close buttons.

Thanks a lot DonNetUser!:) I was having that problem earlier and I found this thread. Thanks again.

Votes + Comments
bumping ancient thread
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!
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.