axWindowsMediaPlayer的问题
一个窗体中有2个axWindowsMediaPlayer 当单击axWindowsMediaPlayer1时选中当前播放器进行操作()单击axWindowsMediaPlayer2时 对axWindowsMediaPlayer2进行操作,这个事件该怎么写 试了多种方法都不行 --------------------编程问答--------------------
求解,我是新手 --------------------编程问答-------------------- axWindowsMediaPlayer1.CanSelect = true;
axWindowsMediaPlayer2.CanSelect = true;
axWindowsMediaPlayer3.CanSelect = true;
axWindowsMediaPlayer4.CanSelect = true;
然后再通过四个Player的Focused判定button事件
if(****1.focused)
button事件经player1
if(****2.focused)
button事件经player2
--------------------编程问答--------------------
汗.代码有问题.不好意思 --------------------编程问答--------------------
private void axWindowsMediaPlayer1_Enter(object sender, EventArgs e)
{
button1.Click += button1_Click;
}
void button1_Click(object sender, EventArgs e)
{
label1.Text = "1";
}
private void axWindowsMediaPlayer2_Enter(object sender, EventArgs e)
{
button1.Click+=button2_Click;
}
void button2_Click(object sender, EventArgs e)
{
label1.Text = "2";
}
这个可行
补充:.NET技术 , C#