Working with Media Player in Multiple forms

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MConlisk
    New Member
    • Nov 2011
    • 3

    Working with Media Player in Multiple forms

    Hello,

    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:

    Code:
    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();
    This is run when the controls form opens, what I am having trouble doing is accessing the axMediaPlayer control on that form from the controls form. I think this is a parent/child thing. Can someone please help me figure out how to access the Properties of the axMediaPlayer control?
  • MConlisk
    New Member
    • Nov 2011
    • 3

    #2
    Does anyone out there know the answer?

    Comment

    Working...