469,623 Members | 1,683 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,623 developers. It's quick & easy.

How do I enable a Panel to recieve MouseWheel events?

Hiya,
I can't get my panel to recieve mousewheel events at all. When I handle the
Mousedown event, I call Me.Focus() in order to have the input focus, but my
mousewheel event never fires. Is there some special trick I have to use
here?
Thanks

Robin
Nov 20 '05 #1
2 1701
* "Robin Tucker" <id*************************@reallyidont.com> scripsit:
I can't get my panel to recieve mousewheel events at all. When I handle the
Mousedown event, I call Me.Focus() in order to have the input focus, but my
mousewheel event never fires. Is there some special trick I have to use
here?


Panels cannot get the input focus.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
<URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 20 '05 #2
Cheers, I'm now setting the focus to the scrollbar I have sitting on the
panel - see question below :)

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:eJ*************@TK2MSFTNGP10.phx.gbl...
* "Robin Tucker" <id*************************@reallyidont.com> scripsit:
I can't get my panel to recieve mousewheel events at all. When I handle the Mousedown event, I call Me.Focus() in order to have the input focus, but my mousewheel event never fires. Is there some special trick I have to use
here?


Panels cannot get the input focus.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
<URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by deko | last post: by
6 posts views Thread by Roger Uribe | last post: by
5 posts views Thread by Dennis | last post: by
1 post views Thread by Code Monkey | last post: by
4 posts views Thread by tlemcenvisit | last post: by
6 posts views Thread by shumaker | last post: by
3 posts views Thread by Dave K | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.