0

I am trying to open 2 forms when I start my vs2005 project. The main form, and a second form whose class is created, and then ->show. It shows both forms, but you can control either one. What I want is the main form to be "locked" until the "OK" or "CANCEL" button is pushed on the secondary form. How do I do this? Here is the code in the constructor of the main form.

form3^ init = gcnew form3();	//Createa a new instance
			Project1::MainForm::AddOwnedForm(init);				//adds to ownership of form to MainForm

			init->Show();

'

Thanks.

2
Contributors
2
Replies
3
Views
9 Years
Discussion Span
Last Post by Nemoticchigga
This question has already been answered. 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.