determine what control on form the mouse is over - like hitTestInf

G

Guest

Hello,

What is the way to determine what control the mouse is over on a form? Like
if the mouse is over a button you could note this in the form's MouseMove
Event

'--pseudocode here
console.Writeline(mouse.HitestInfo.ToString)

Does a winform have anything like the Datagridview.HitTestInfo thing? How
can I tell in code what the mouse is passing over on a form?

Thanks,
Rich
 

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