Solve the same window of MDI is repeated

xiaoxiao2021-03-06  58

DLL declares unique FRMCHILD: TFRMCHILD;

Call time

Call function of subform

IF not assigned (frmchild) THEN

FRMCHILD: = TfrmChild.create (Self);

Try

FRMCHILD.SHOW;

Finally

FRMCHILD.FREE;

FRMCHILD: = NIL;

END;

If you have created, you will not be created again, you can only show it out.

转载请注明原文地址:https://www.9cbs.com/read-118674.html

New Post(0)