logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Nanno  
#1 Posted : Wednesday, July 26, 2017 8:43:48 AM(UTC)
Nanno

Rank: Newbie

Groups: Registered
Joined: 7/26/2017(UTC)
Posts: 6
Netherlands

Is there a way to temporary disable the mouse wheel scroll option?

Yours Nanno
Paul Rayman  
#2 Posted : Thursday, July 27, 2017 5:40:54 AM(UTC)
Paul Rayman

Rank: Administration

Groups: Administrators
Joined: 1/5/2016(UTC)
Posts: 1,138

Thanks: 10 times
Was thanked: 133 time(s) in 130 post(s)
Yes, it is possible.

Just override OnMouseWheel method and disable calling its base code

Code:

protected override void OnMouseWheel(MouseEventArgs e)
{
	//base.OnMouseWheel(e);
}
Nanno  
#3 Posted : Thursday, July 27, 2017 6:41:38 AM(UTC)
Nanno

Rank: Newbie

Groups: Registered
Joined: 7/26/2017(UTC)
Posts: 6
Netherlands

Hello Paul,

I had already tried that but that doesn't work. I've got a usercontol on which the PdfViewer is placed. I think you're option will only work if I use the sourcecode you've supplied and not when using the control from the downloaded assembly.

Yours Nanno
Paul Rayman  
#4 Posted : Thursday, July 27, 2017 6:52:58 AM(UTC)
Paul Rayman

Rank: Administration

Groups: Administrators
Joined: 1/5/2016(UTC)
Posts: 1,138

Thanks: 10 times
Was thanked: 133 time(s) in 130 post(s)
You must create a child class derived from PdfViewer and override OnMouseWheel inside that class of course.
Nanno  
#5 Posted : Thursday, July 27, 2017 7:11:57 AM(UTC)
Nanno

Rank: Newbie

Groups: Registered
Joined: 7/26/2017(UTC)
Posts: 6
Netherlands

You are ever so right. That part slipped my mind. Working like a charm now.

Thanks
Users browsing this topic
Guest (2)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.