mariano_donati
Active member
- Joined
- Nov 30, 2005
- Messages
- 41
- Programming Experience
- Beginner
Hi, I'm making a custom trackbar. It works fine, until now at least. But i'm having some kind of trouble with the scroll button and mouse events. The thing is that i need to know mouse position, i do that handling MouseMove event of main form. But, if i move the mouse in a button or another control of the main form, then, obviously, MouseMove event of main form doesnt raise, and that blows my application off. I tried to solve it doing this:
MySubEventhandler(...) Handles MyBase.MouseMove, Control1.MouseMove, Control2.MouseMove 'And so on...
But that didn't work either, because MouseEventArgs arg, contains info about a determined control. So what i need is that even if the mouse is on a button or another control of the main form, MouseMove event keeps return me X and Y position of the mouse in the main form and not in the control that it's on.
Is that possible?
MySubEventhandler(...) Handles MyBase.MouseMove, Control1.MouseMove, Control2.MouseMove 'And so on...
But that didn't work either, because MouseEventArgs arg, contains info about a determined control. So what i need is that even if the mouse is on a button or another control of the main form, MouseMove event keeps return me X and Y position of the mouse in the main form and not in the control that it's on.
Is that possible?