ElektroStudios
ElektroStudios

Reputation: 20464

If MousePosition is overhoving "X" control then

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

Upvotes: 0

Views: 56

Answers (1)

tinstaafl
tinstaafl

Reputation: 6948

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

The MouseHover event will tell you that

Upvotes: 1

Related Questions