I am trying to open a DLL, which contains an MDI application, from an external application. The MDI form opens fine but when I try to open one of the child forms I get the following error message;
Cannot create form. No MDI forms are currently active.
Thanks for your response. The main MDI form uses the following code to open the child window(frmSQLWin) but this still produces the error detailed above.
var
frmSQLWin : TfrmSQLWindow;
begin
if dlgOpenSQL.Execute then
begin
frmSQLWin := TfrmSQLWindow.Create(Self);
frmSQLWin.Show;
frmSQLWin.mSQLWindow.Lines.LoadFromFile(dlgOpenSQL.FileName);
frmSQLWin.Caption := dlgOpenSQL.FileName;
end;
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.