Solved

Prevent a form to be minimized if the main form get minimized.

Posted on 1997-06-09
1
188 Views
Last Modified: 2010-04-06
I have a form in my program which I want to be visible all the time and not get minimized if the main form is minimized.
0
Comment
Question by:HarisIV
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 1

Accepted Solution

by:
ygolan earned 50 total points
ID: 1336883
You will need to specify the desktop window as the parent of your form window. Here is an example :

  TForm2 = class(TForm)
  private
    { Private declarations }
  public
    { Public declarations }
    // Override CreateParams
    procedure CreateParams(var Params:TCreateParams); override;
  end;

...

procedure TForm2.CreateParams(var Params:TCreateParams);
begin
    inherited;
    Params.WndParent := 0; // Change the parent window
end;

0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

690 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question