Delphi2010: Dual Monitor Problem -- why is sub Form hiden?

Posted on 2011-10-26
Last Modified: 2012-05-12
hello all,

i have an application which have a main form and a sub form.

if the application is started, main form and sub form will be displayed, the sub form is displayed over the main form.

it works great on dual monitor of mine and other customer's.

but one customer has problem with his dual monitor. When he starts the application, the sub form is hiden behind the main form. Only by using "Alt + Tab" can this sub form be invoked and displayed again.

any suggestion?


Question by:wantime

    Author Comment

    the best way could be make some change in souce codes to let the application work on all dual monitor.

    it will be also appreciate, if one knows how to change the configuration of monitors and let it work, without any change in source codes.
    LVL 25

    Expert Comment

    I don't see the relation between dual monitor and the problem.
    If I understood you have a form hidden behind another. That could apply to only one monitor.

    Please tell us more about the way you create and display your forms (is the sub form modal ?)

    check here as there are a couple good things to try
    LVL 32

    Expert Comment


    you can try to set the following properties as well

    SubForm.DefaultMonitor := dmActiveForm;
    SubForm.FormStyle := fsStayOnTop;

    Author Comment

    the problem is still there.

    the codes is attached here.

    The Problem i met is in Step 5:

    Step 1.  start the application in a computer which has dual monitor.

    Step 2. the forms are displayed correctly.

    Step 3. close the form with name "Form2".

    Step 4. move the "Form1" with mouse from left monitor to right monitor.

    Step 5.  the "Form2" is displayed again! and "Form2" could not be closed per mouse click, i must close it with ctrl-alt-del.

    this application works great in my dual monitor and also by other people, but just by few people it has problem above.

    any idea? thanks.

    Author Comment

    i wonder why the method Formactivated was invoked, when the main form is moved to another monitor.

    are there any way to prevent that happened?

    Accepted Solution

    the problem is basiced on a software called nView-Profil  which was used. After the standard value is reset in nView-Profil, the problem was resolved.

    Author Closing Comment

    it works.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    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…
    I recently purchased an HP EliteBook 2540p notebook/laptop. It has two video ports on it – VGA and DisplayPort. HP offers an optional docking station for the 2540p that also has both a VGA port and a DisplayPort. There are numerous online reports do…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    This video discusses moving either the default database or any database to a new volume.

    779 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

    12 Experts available now in Live!

    Get 1:1 Help Now