I in form1 buttonclick write the code (the sender) event:
Form2:=tform2. Create (nil);
Form2. Parent:=form1. Panel3;
Form2. Show;
Form2. Edit1. Setfocuse;
What is wrong??? O great god door guide!!!!!
CodePudding user response:
Why is the operation? Directly in the form1. Panel3, add controls, not advocating mutual nested form, unless the mid nuclear type,CodePudding user response:
After creation of the form2. Edit1. Setfocuse; Can be removed,In form2 form OnShow event, add edit1. SetFocus;
CodePudding user response:
Reference 2 #, directly in form2 form processing,