Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7414883
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T07:11:20+00:00 2026-05-29T07:11:20+00:00

Is is possible to show an application on only one display, if the display

  • 0

Is is possible to show an application on only one display, if the display is cloned? My goal is to develop a timer that is shown on the laptop display during a presentation but not on the projector.

I’m looking for something like windows’ “Identify displays” feature, which displays numbers 1 and 2 on the different displays, even in cloned mode.

Thanks

Edit

I discovered a possible duplicate to this question. The accepted answer in this case was to use Screens.AllScreens to discover the number of screens. This is not enough in my case. A comment on the accepted answer links to a thread about directly painting on the desktop. I tried this with the following code, but the text appeared on both displays. The code to get the Hdc of the input is from an article about screen captures. I’m not sure what to set for the other parameters (they are IntPtr.Zero in the article)

[DllImport("gdi32.dll")]
static extern IntPtr CreateDC(IntPtr lpszDriver, string lpszDevice, IntPtr lpszOutput, IntPtr lpszInitData);

[DllImport("gdi32.dll")]
static extern IntPtr DeleteDC(IntPtr hdc);

private void PaintOnDesktop(string stringToPrint, Font font, Brush brush, PointF position) {
    string deviceName = Screen.AllScreens[0].DeviceName;
    IntPtr targetHdc = CreateDC(IntPtr.Zero, deviceName, IntPtr.Zero, IntPtr.Zero);
    using (Graphics g = Graphics.FromHdc(targetHdc)) {
        g.DrawString(stringToPrint, font, brush, position);
    }
    DeleteDC(targetHdc);
}

Edit 2

Apparently there is no way to do this in C#, so I changed the C# tag to device driver.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T07:11:22+00:00Added an answer on May 29, 2026 at 7:11 am

    The only way to achieve this effect would be to “clone” the screen “manually”, i.e. outside of utilizing this feature of the driver, which would of course induce some lag. UltraMon has a feature like this, designed for video cards or OS’s that don’t support multiple-monitor cloning. It’s basically done by screenshotting the desktop rapidly and displaying it on a form on another (extended) monitor.

    The lag induced is only present on one of the monitors, so in your case if this is for a presentation, I would suggest making “your” monitor (probably the primary one on your laptop) the recipient of the lag, so the audience doesn’t see it. You can then of course draw a timer form on top of either screen.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to change the routes for one resource (at least only show,
I'm writing a PHP application that manages some LDAP entries. I have one page
Possible Duplicate: Android : CalledFromWrongThreadException;: Only the original thread that created a view hierarchy
I'm making an iPhone application that needs to show a notification to the user
I developed one application. I planed to release that as a free app in
I am writing an application that would download and replace a pdf file only
I am developing a PHP application that will be run only on the local
Possible Duplicate: Restore a minimized window of another application I want to restore (show
I am working on one application in which i need to show slide show
I am doing an android applicaiton and I know its possible to show or

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.