I need to write a program that plays Windows Media on a second monitor. I have a control booth and a presentation screen where I work. I want a program that will have a form for the media player controls on my screen in the booth, while playing the media on the presentation screen.
I have found code for making the player open in fullscreen on the presentation screen using something like:
Expand|Select|Wrap|Line Numbers
- Screen[] sc;
- sc = Screen.AllScreens;
- //get all the screen width and heights
- Form2 f = new Form2();
- f.FormBorderStyle = FormBorderStyle.None;
- f.Left = sc[0].Bounds.Width;
- f.Top = sc[0].Bounds.Height;
- f.StartPosition = FormStartPosition.Manual;
- f.Location = sc[0].Bounds.Location;
- Point p = new Point(sc[0].Bounds.Location.X, sc[0].Bounds.Location.Y);
- f.Location = p;
- f.WindowState = FormWindowState.Maximized;
- f.Show();