Rank: Newbie
Groups: Registered
Joined: 7/26/2017(UTC) Posts: 6 
|
Is there a way to temporary disable the mouse wheel scroll option?
Yours Nanno
|
|
|
|
|
|
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);
}
|
|
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 7/26/2017(UTC) Posts: 6 
|
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
|
|
|
|
|
|
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.
|
|
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 7/26/2017(UTC) Posts: 6 
|
You are ever so right. That part slipped my mind. Working like a charm now.
Thanks
|
|
|
|
|
|
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.
Important Information:
The Patagames Software Support Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close