Board index » delphi » Minimize one form, not the whole application?

Minimize one form, not the whole application?

I have a Form1 defined as Main Form, but when i minimize Form1
does also Form2 minimize! How come? Is there any way to prevent
this?

----------------------------------------------------------------
Christian Landgren | http://www.iteam.se/cl
Orev?gen 3B        | c...@iteam.se
161 40 Bromma      | Tel: +46-8-7042766,  Fax: +46-8-4459330

 

Re:Minimize one form, not the whole application?


Quote
Christian Landgren <c...@iteam.se> wrote:
>I have a Form1 defined as Main Form, but when i minimize Form1
>does also Form2 minimize! How come? Is there any way to prevent
>this?

If form2 is a child of form1 it will minimize both.

--
Peter Newell
http://ourworld.compuserve.com/homepages/newell
Delphi, PowerBuilder, C++, and Database design and development

Re:Minimize one form, not the whole application?


Quote
Christian Landgren <c...@iteam.se> wrote:
>I have a Form1 defined as Main Form, but when i minimize Form1
>does also Form2 minimize! How come? Is there any way to prevent
>this?

Make something else the main form - the way Delphi is set up,
minimizing the main form minimizes the application.  (Note that this
same behaviour is evident in the Delphi IDE - if you minimize the bar
at the top of the screen, all Delphi IDE windows will be minimized
'into' it.)

Other Threads