2013-04-21 72 views

回答

1

您可以訂閱的玩家PlayStateChange event

wmp.PlayStateChange += new AxWMPLib._WMPOCXEvents_PlayStateChangeEventHandler(wmp_PlayStateChange); 

private void wmp_PlayStateChange(object sender, AxWMPLib._WMPOCXEvents_PlayStateChangeEvent e) 
{ 
    if(e.newState == 8) 
     this.Close(); 
} 
+0

非常感謝您! – 2013-04-21 21:13:48

+0

不客氣。如果這回答了你的問題,你可以點擊左邊的複選標記來接受它作爲回答:) – keyboardP 2013-04-21 21:18:54