Solved

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

Posted on 1997-06-09
1
166 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
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

743 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now