0

How I can know if the mouseposition is inside a margin?

I mean for example I have a TrackBar control in my form then I want to know if the mouseposition is overhoving that control.

private some sub()...
  if not mouseposition is over MyTrackbar location then
    Do something
  else
    Do nothing
  end if
end sub
ElektroStudios
  • 19,105
  • 33
  • 200
  • 417

1 Answers1

1

I want to know if the mouseposition is overhoving that control.

The MouseHover event will tell you that

tinstaafl
  • 6,908
  • 2
  • 15
  • 22
  • I know how to use he mousehover event but I did not think well as it had to do, first create a boolean variable to manage if the mouse is overhoving the control, second in the mousehover event set that variable to "True" and in the mouseleave event set it to "false", well thanks. – ElektroStudios Jul 03 '13 at 16:30