Selecting the display screen at runtime

G

Guest

Hi,

I am developing an application, that needs to display forms on different
screens. There will be two screens connected as seperate displays (not a
single desktop spread across 2 monitors), and I want to be able to select
which screen a form will appear on when I show it.
I can find out how many screens are conected to the system, and all the
properties of each one, but I can't work out how to specify which screen to
display on.

I'm sure it must be possible to do this.
Can anyone help?

Thankyou.
 
A

Armin Zingler

Paul Cheetham said:
I am developing an application, that needs to display forms on
different screens. There will be two screens connected as seperate
displays (not a single desktop spread across 2 monitors), and I want
to be able to select which screen a form will appear on when I show
it. I can find out how many screens are conected to the system, and
all the properties of each one, but I can't work out how to specify
which screen to display on.


Me.Location = System.Windows.Forms.Screen.AllScreens(1).Bounds.Location
Me.WindowState = FormWindowState.Maximized

Does this help or have you alredy tried this?


Armin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top