I found a problem, problem description,
Form1 is the main form MDI, Form2 is an MDI child window, Form2 transferred to manually create in the options at the same time,
In Form1 put a Button Button, click this Button to appear Form2. I added in the Button Button to create Form2 statements, the following
TForm * pform;
Pform=new TForm2 (this);
Pform - & gt; Show ();
Question, if the third sentence statement pform - & gt; Show (); , Form2 or display properly, I show function in Form2 lower-middle breakpoints, found that the show Form2 function after execution to the second statement is executed, I am strange, this pform - & gt; Show (); Have a purpose??? Please down to solve,
CodePudding user response:
Pform - & gt; Show (); Is at the time of pform hidden,CodePudding user response: