Arni Ingason

Arni Ingason

  • NA
  • 29
  • 3.8k

Window Media Player in WPF, Ctlcontrols problem

Feb 5 2011 11:43 AM
Hi Mahesh Chand and thank you for your reply.
I manage to delete my thread so I have to continue in a new one.


Then I used the WmpAxLib in my wpf application with the following code:
            // Create the interop host control.
            host = new WindowsFormsHost();
            // Create the ActiveX control.
            AxWMPLib.AxWindowsMediaPlayer axWmp = new AxWMPLib.AxWindowsMediaPlayer();
            axWmp.Height = 500;
            axWmp.Width = 600;
            axWmp.StatusChange += new EventHandler(axWmp_StatusChange);
            axWmp.PlayStateChange += new AxWMPLib._WMPOCXEvents_PlayStateChangeEventHandler(axWmp_PlayStateChange);
            axWmp.DeviceStatusChange += new AxWMPLib._WMPOCXEvents_DeviceStatusChangeEventHandler(axWmp_DeviceStatusChange);
            host.Child = axWmp;
            axWmp.URL = @"F:\260.wma";
            axWmp.Ctlcontrols.play();
            this.grid1.Children.Add(host);

The problem is that I can not find the show methods under the axWmp.Ctlcontrols.
What could be the reason for that ?

Answers (1)