Form.GetChildsAtPoint

Posted by serhio on Stack Overflow See other posts from Stack Overflow or by serhio
Published on 2010-04-28T13:00:03Z Indexed on 2010/04/28 13:03 UTC
Read the original article Hit count: 325

Filed under:
|
|

I would like to obtain the list of controls under a given point.

There is a method on System.Windows.Form to obtain a control under a point(GetChildAtPoint) but not point(GetChildsAtPoint). Is there something similar for the list of controls (if borders intersect one other):

alt text

I need this because I select the objects when user clicks on the panel(I use Microsoft.VisualBasic.PowerPacks.RectangleShape as label bellow). In case if labels are superposed, user should be asked what object to select.

© Stack Overflow or respective owner

Related posts about .NET

Related posts about custom-controls