Minimizing  form

Posted on 2004-11-07
Last Modified: 2010-04-05
I have write a program in delphi wich hase some forms. As the other programs in delphi when I minimize the main form of programm it miimized like other windows program, but when I minimize other forms, i doesn't go down to the task bar, and covert to a small rectangle and go to the left bottom corner of the screen.
Ho can make it like other windows programs, that always go to the task bar when the user minimize any forms?
Question by:Ehsun
    1 Comment

    Accepted Solution

    in the form class definition add the following to the protected section

        procedure CreateParams(var Params: TCreateParams); override;

    then in implementation do...

    procedure TSomeFormClass.CreateParams(var Params: TCreateParams);
      inherited CreateParams(Params);

      Params.ExStyle := Params.ExStyle and WS_EX_APPWINDOW;

    Note - this will not work well if there are any modal forms showing.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    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…
    This video discusses moving either the default database or any database to a new volume.
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    761 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

    7 Experts available now in Live!

    Get 1:1 Help Now