I manage to delete my thread so I have to continue in a new one.
I used the following article http://msdn.microsoft.com/en-us/library/ms742735(v=vs.85).aspx
// 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 ?
Suthish NairPosted Feb 6, 2011, 5:42 AM