Computer Science Canada Help with drag drop. |
Author: | CodeMonkey2000 [ Wed Nov 21, 2007 9:40 pm ] | ||||
Post subject: | Help with drag drop. | ||||
Okay, the drag drop event for a label looks like this:
My problem is how do I tell what the Source is? I tried:
but as it turns out that is only comparing the caption properties (ie if I dragged over label3 which has the same caption as label2, then that if statement will be true). How do I verify that source is actually label2? Is there a property that is unique to all controls ? (and name doesn't work if you have an array of controls) |
Author: | Brightguy [ Sat Nov 24, 2007 5:39 pm ] |
Post subject: | Re: Help with drag drop. |
If it's part of a control array, then you can use the Index property to distinguish between controls. Also, you could make the Tag property unique to all controls, as a hack. |