custom control focus

D

dragonslayer008

Hello,

I made a custom control which derives from UserControl, which handles
mouse input (e.g., rotates an object) when the mouse moves. I am
handling the OnMouseDown, OnMouseUp, OnMouseWheel, OnMouseMove
functions.

When I click on my control, it doesn't seem to get focus however,
which is preventing me from getting mouse wheel input. If I use tab,
I can get my control in focus and then it receives mouse wheel focus.
How can I make my control have focus when the user clicks it?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top