By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,239 Members | 1,503 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,239 IT Pros & Developers. It's quick & easy.

How do I enable a Panel to recieve MouseWheel events?

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
* "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

P: n/a
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.