Determine the Control that is clicked

  • Thread starter Thread starter m
  • Start date Start date
M

m

Hi All,

Any suggestions on how to determine what control is currently being clicked
on? The catch is that the control may be disabled. I guess what I'm
looking for is a way to translate the screen coordiates into a reference to
a control (whether diabled or not).

TIA

Matt B.
 
m said:
Any suggestions on how to determine what control is currently being
clicked on? The catch is that the control may be disabled. I guess what
I'm looking for is a way to translate the screen coordiates into a
reference to a control (whether diabled or not).

Did you already check the form's 'GetChildAtPoint' method (untested)?
 
Did you already check the form's 'GetChildAtPoint' method (untested)?

That works great.

Much Thanks

MB
 

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

Back
Top