Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

MouseWheel event

1 view
Skip to first unread message

Alberto

unread,
Dec 20, 2009, 4:45:47 PM12/20/09
to
If I want to manage the event MouseWheel I can write a line like this in
the designer of a form, for example.

TabControl.MouseWheel += ...

but, does anybody know why this event doesn't appear in the controls
property window? You can see other events like MouseMove or MouseLeave
but MouseWheel isn`t there.

Thank you

David McCallum

unread,
Dec 21, 2009, 1:27:20 AM12/21/09
to

"Alberto" <alb...@nospam.es> wrote in message
news:Oqq3M3bg...@TK2MSFTNGP04.phx.gbl...

See
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.mousewheel.aspx

David

alberto

unread,
Dec 21, 2009, 2:51:35 AM12/21/09
to
El 21/12/2009 7:27, David McCallum escribi�:
Thank you but it doesn't work for me. I have two panels, one inside the
other. I want to move the inner panel inside the other.

Mick Doherty

unread,
Dec 21, 2009, 2:47:12 PM12/21/09
to
The control must be focused in order for it to react to MouseWheel events.
By default a Panel cannot receive focus and so the MouseWheel event is not
listed in the events list.

--
Mick Doherty
http://dotnetrix.co.uk/nothing.htm

"alberto" <alb...@nospam.es> wrote in message
news:eHUb1Jhg...@TK2MSFTNGP05.phx.gbl...

Finn Stampe Mikkelsen

unread,
Dec 21, 2009, 6:34:42 PM12/21/09
to
"Mick Doherty" <mick.d...@dotnetrix.co.uk> skrev i meddelelsen
news:FF9970C8-BDA9-4116...@microsoft.com...

> The control must be focused in order for it to react to MouseWheel events.
> By default a Panel cannot receive focus and so the MouseWheel event is not
> listed in the events list.
>
> --

Could the form be set to catch all, like keypressed?? Then the eventhandler
could determine the action based upon mouse x/y and other variables...

/Finn

Alberto

unread,
Dec 22, 2009, 5:02:55 AM12/22/09
to
El 22/12/2009 0:34, Finn Stampe Mikkelsen escribi�:
The problem isn't manage the mouse wheel event. The problem is how to
move the inner panel.
Thank you

Peter Duniho

unread,
Dec 22, 2009, 5:10:18 AM12/22/09
to
Alberto wrote:
> The problem isn't manage the mouse wheel event. The problem is how to
> move the inner panel.

Then why did you post this:

> If I want to manage the event MouseWheel I can write a line like this in
> the designer of a form, for example.
>
> TabControl.MouseWheel += ...
>
> but, does anybody know why this event doesn't appear in the controls
> property window? You can see other events like MouseMove or MouseLeave
> but MouseWheel isn`t there.

?

That's exactly the question that David, Mick, and Finn are all
addressing, because that's exactly the question you asked.

And as for the question you apparently _meant_ to ask: why are you still
having a problem moving the inner panel, given that I already posted the
code you need to fix your problem?

Pete

0 new messages