how to open 2 forms in 2 separate desktops (using multimonitor feature)

Posted on 2005-04-14
Last Modified: 2010-04-05

i need to open 2 additional forms from the main menu. i have multimonitor configuraion and each form shoul dbe opened in separate monitor. how do i enumerate number of desctops(monitors) and how to make it show on different than defailt monitos?

thanks in advance
Question by:kirez
    1 Comment
    LVL 15

    Accepted Solution

    Test if this simple soultion will work, otherwise look at the rest of this explanation

    This is the default monitor where form appear
    dmDesktop     No attempt is made to position the form on a specific monitor.
    dmPrimary     The form is positioned on the first monitor listed in the global screen object’s Monitors property.
    dmMainForm     The form appears on the same monitor as the application’s main form.
    dmActiveForm     The form appears on the same monitor as the currently active form.

    defaultmonitor have no efect if application dont have a mainform

    screen.monitorcount    is a variable where is the number of monitors

    screen.Monitors[Index: Integer]: TMonitor;  is the all the monitors awiable to the sistem

    form1.monitor prowides acces where for the monitor where form is appear;

    procedure MakeFullyVisible(AMonitor: TMonitor = nil);

    wery usefull comand to make shure the moinitor is tha fully visible

    Featured Post

    Training Course: Java/J2EE and SOA

    This course will cover both core and advanced Java concepts like Database connectivity, Threads, Exception Handling, Collections, JSP, Servlets, XMLHandling, and more. You'll also learn various Java frameworks like Hibernate and Spring.

    Join & Write a Comment

    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…
    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 discusses moving either the default database or any database to a new volume.
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    729 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

    18 Experts available now in Live!

    Get 1:1 Help Now