POR FAVOR EU ESTOU COM UM PROBLEMA EM DELPHI, quando EU TENTO CRIAR UM FORM ATRAVES DE UM LOGIN ELE APARECE SEMPRE A mesmo MENSAGEM DE ERRO!!! "Project Project1.exe raised exception class EInvalidOperation with message 'Cannot create form. No MDI are currently active'. Process stopped. Use Step or Run to continue" Esse foi o código foi posto no Delphi para programar o botao. procedure TLogon.Button1Click(Sender: TObject); begin if edit1.text = '***' then begin Application.CreateForm(TPrincipal, Principal); principal.Exibir1.Enabled := false; principal.Cadastrar1.Enabled := false; principal.show; end else if edit1.text = '***' then begin Application.CreateForm(TPrincipal, Principal); principal.formstyle:=fsmdiform; principal.show; end else showmessage('Senha Incorreta!!!!'); end; end. Por favor se souberem me responder ajudem me!!!! OBRIGADO