Monday, February 21, 2011

Location of labels

I'm trying to find out if there is a way to determine if a label is in a given location on a form. Basically the user will drag a panel into 1 of 225 labels and I need to determine which label the panel is on.

Jon

From stackoverflow
  • The "sender" parameter that is given in most GUI events represents the control which generated the event.

    Also, you can call the GetChildAtPoint() function to get the control present at a given mouse location.

    Jon : Thanks a lot! I got it working.

0 comments:

Post a Comment