[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

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

Posted on 1997-06-09
1
Medium Priority
?
194 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 150 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses
Course of the Month20 days, 12 hours left to enroll

865 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