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
 
Back
Top