Delphi - Create form behind another form.
Posted
by Clement
on Stack Overflow
See other posts from Stack Overflow
or by Clement
Published on 2010-04-21T04:01:11Z
Indexed on
2010/04/21
4:03 UTC
Read the original article
Hit count: 268
Hi guys,
I'm using Delphi 4. I have a main form with a button that dynamically creates a new form. I'd like the new form to be visible, but shows up BEHIND the main form.
I've tried calling SendToBack() immediately after FormCreate(). But that makes the window flicker quickly before it's actually sent to back.
I've tried making the form invisible, then SentToBack(), then Visible := true. But the new form is still at the front. SendToBack() doesn't seem to work on invisible forms??
Any suggestions?
Thanks!
© Stack Overflow or respective owner