Mouse wheel event usage
Products: Video Capture SDK .Net, Video Edit SDK .Net, Media Player SDK .Net
Sample code
private void VideoView1_MouseEnter(object sender, EventArgs e)
{
if (!VideoView1.Focused)
{
VideoView1.Focus();
}
}
private void VideoView1_MouseLeave(object sender, EventArgs e)
{
if (VideoView1.Focused)
{
VideoView1.Parent.Focus();
}
}
private void VideoView1_MouseWheel(object sender, MouseEventArgs e)
{
mmLog.Text += "Delta: " + e.Delta + Environment.NewLine;
}
Required redists
- SDK redist
Visit our GitHub page to get more code samples.