Sample code

private void MediaPlayer1_MouseEnter(object sender, EventArgs e) 
{ 
  if (!MediaPlayer1.Focused) 
  { 
    MediaPlayer1.Focus(); 
  } 
}

private void MediaPlayer1_MouseLeave(object sender, EventArgs e) 
{ 
  if (MediaPlayer1.Focused) 
  { 
    MediaPlayer1.Parent.Focus(); 
  } 
}

private void MediaPlayer1_MouseWheel(object sender, MouseEventArgs e) 
{ 
  mmLog.Text += "Delta: " + e.Delta + Environment.NewLine; 
}
Please contact support to get help with this tutorial. Visit our GitHub page to get more code samples.
abstract 2abstract 1abstract 3
logo
VisioForge © 2006 - 2021