Solved

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

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

816 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