How to project an image on the big screen?

2

I've searched the internet and I do not think so.

How do I project an image on the big screen?

Example: On the main screen (notebook) show executable (windows forms), and on the second screen show an image (do not show windows form). It's like a powerpoint.

Look like this:

Does anyone know what it's called? I do not think on the internet.

    
asked by anonymous 12.10.2017 / 01:25

1 answer

4

A projector is just another video output. You can press Win + P to switch between connected video devices. I do not know if it works in Windows 7 or lower.

Have a form with what you want to show. An image, a text or whatever. This will be ApresentacaoForm .

Just show this form normally, just adjusting its position so that it stays on your second screen.

ApresentacaoForm formulario = new ApresentacaoForm();
Screen[] telas = Screen.AllScreens;
Rectangle bounds = telas[1].Bounds; // pode ser outro índice.
formulario.SetBounds(bounds.X, bounds.Y, bounds.Width, bounds.Height);
formulario.StartPosition = FormStartPosition.Manual;
formulario.Show();

Documentation for Screen.AllScreens on MSDN.

If you do not have a form for each image, leave a form with the image component and pass in the ApresentacaoForm constructor the path to that image, setting it in the component. p>

If you find it difficult to find the right device, you can filter the array from Screen to DeviceName .

Screen projetor = Screen.AllScreens.FirstOrDefault(f => f.DeviceName == "Meu projetor");
    
12.10.2017 / 01:50