110,538
社区成员
发帖
与我相关
我的任务
分享
AxWMPLib.AxWindowsMediaPlayer axWindowsMediaPlayer1 = new AxWMPLib.AxWindowsMediaPlayer();
((System.ComponentModel.ISupportInitialize)(axWindowsMediaPlayer1)).BeginInit();
panel2.Controls.Add(axWindowsMediaPlayer1);
((System.ComponentModel.ISupportInitialize)(axWindowsMediaPlayer1)).EndInit();
axWindowsMediaPlayer1.URL = "abc.mp3";
axWindowsMediaPlayer1.Size = new System.Drawing.Size(500,250);
axWindowsMediaPlayer1.Location = new Point(20, 50);//new Point(20, controlHeight);
axWindowsMediaPlayer1.Show();