how to create MDI form in delphi with screen login

Hello, Guys

I need create a app with Delphi MDI but my problem is how create MDI Form with screen login.

when I create a form login and call form2 "app" I received erro no can use MDI form No MDI forms are currently active
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Sinisa VukSoftware architectCommented:
Why MDI for login form? For MDI - you need MDI child form and MDI parent (visible and active). Login forms are pop-up forms ... This is by design...
eduardo12foxAuthor Commented:
Look my proect of test. Make download for you understand.
Sinisa VukSoftware architectCommented:
Which project? Check FormStyle property if you set MDIxxx on purpose. Set it back to fsNormal.
OWASP Proactive Controls

Learn the most important control and control categories that every architect and developer should include in their projects.

Geert GOracle dbaCommented:
an mdi window, is typically not modal
a login window is usually modal, by necessity

a non-modal window can be moved to the side and focus set on another window
that's the whole idea behind modal and non-modal

i dunno if you were around in the good-ol pre windows NT days ... windows 3.11
if you didn't want to type the password, you just hit Escape, and continued ...

i can't imagine you want to give this functionality to your users ?

there is no sample download yet
eduardo12foxAuthor Commented:
Sorry, I thought I added.
Geert GOracle dbaCommented:
trying to spread a virus ?
this website has the capability of sharing files.

upon clicking on download, i need to accept and install something.

like that 'll happen.
Sinisa VukSoftware architectCommented:
You cannot create modal form like this:
  with TScreen_Login.Create(Self) do

Open in new window

Use this way:
  sl: TScreen_Login;
  Application.CreateForm(TScreen_Login, sl);

Open in new window

Because main form is MDIForm - this login form is not MDIChild - therefore cannot set main form as a parent to login form.
Hope you get it.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
eduardo12foxAuthor Commented:
For -> Geert Gruwez - Do you have any problem?? Because I sharing any file with virus? Do you is Crazy man?

I´m manager of big company in Brazil I not time for to play with as supportive people.
eduardo12foxAuthor Commented:
Thanks! Perfect
Geert GOracle dbaCommented:
The website your download goes has lots of adverts with misleading links.

The ee site has enough to share file.

A manager who writes programs ?

In need of extra staff?
eduardo12foxAuthor Commented:
Geert Gruwez,

try sharing files the Delphi for you see if you can.  For me return erro in file into zip.  

Yes! I here aways need good professional. But for me Delphi I use for project personal not in company.
Geert GOracle dbaCommented:
i already know i can share files on this site

a zip gets checked for contents.  only certain files are allowed.

all files not in the extension list will be refused

for the big company: i work at a fortune 500 company too.  it got stuck at 311 this year
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.