Home > Archive (Community help, from old helpdesk) > How to implement MouseWheel Event in MediaPlayer?

How to implement MouseWheel Event in MediaPlayer?

Avatar image
Aug 22, 2015
Archive Agent wrote
I need the delta value for implement Fast Forward and Fast Rewind.

Luiz CorreiaLuiz Correia on February 5, 2014 7:37 PM
Completed
0
Vote
Reply
8 Answers
Aug 22, 2015
Archive Agent agent wrote
Luiz Correia

Is this possible?

on February 06, 2014 19:20
Aug 22, 2015
Archive Agent agent wrote
Roman Minyaylov

Checking it now.

on February 06, 2014 19:27
Aug 22, 2015
Archive Agent agent wrote
Luiz Correia

I found this, maybe you can implement it in your SDK:
http://stackoverflow.com/a/13754686/3253166

on February 07, 2014 14:05
Aug 22, 2015
Archive Agent agent wrote
Roman Minyaylov

Where is a problem to use MouseWheel control event?

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;
}

on February 10, 2014 12:06
Aug 22, 2015
Archive Agent agent wrote
Luiz Correia

Sorry, my mistake, but in Properties Window doesn't is visible the Mouse Wheel Event

on February 10, 2014 14:35
Aug 22, 2015
Archive Agent agent wrote
Roman Minyaylov

Yeah, difficult to told why but MS hide it.

on February 10, 2014 17:50
Aug 22, 2015
Archive Agent agent wrote
Luiz Correia

The MouseWheel Event not firing.

on February 12, 2014 15:03
Aug 22, 2015
Archive Agent agent wrote
Roman Minyaylov

Check my code, you must set focus to control.

And that's .Net question, not our SDK related.

on February 12, 2014 15:06