這裏點擊鏈接是按鈕點擊方法....但代碼是給錯誤 如何播放音樂時,我在C#中
" axWindowsMediaPlayer1 doesn't exist in the current context":(
plz幫助我。我想,當我播放音樂點擊按鈕
private void button8_Click_1(object sender, EventArgs e)
{
axWindowsMediaPlayer1.Visible = false;
axWindowsMediaPlayer1.URL = (@"C:\Users\DELL\Downloads\ringtones\Twilight Piano.m4r");
axWindowsMediaPlayer1.Ctlcontrols.play();
}
private void axWindowsMediaPlayer1_Enter(object sender, EventArgs e)
{
}
您給媒體播放器控件的名稱是什麼?檢出此鏈接http://msdn.microsoft.com/en-us/library/windows/desktop/dd564585%28v=vs.85%29.aspx – Karthik
只需使用左手(hammond)鍵盤(http:///www.google.dk/imgres?imgurl=http://users.belgacom.net/bn479423/download/xk-3img1.jpg&imgrefurl=http://www.hammondorgan.co.uk/xk3/index.htm&h=1189&w = 3109&SZ = 244&tbnid = 8vMWmVt6-sVE1M:TBNH = 42&tbnw = 111&變焦= 1&USG = __ FcwgVU6QcK8qs-sQ4l4isKb50J0 =文檔ID = ETdu-zkxF2NQnM&SA = X&EI = Ni6FUOGOKoWZ0QXhsoG4BA&VED = 0CDYQ9QEwAA&DUR = 561) –