Thanks to the other guy in this thread (here
) I was able to make a panel movable the way I wanted it, but now I also need it to detect and stop upon collision.
As a sample, I inserted a third panel in the form called panel3, when I hover panel1 into it, I need it to stop, not proceed. In fact, I need it to stop when it hits any edge of the form
(no matter what size that is). how can I proceed?
The sample source is attached, thanks.
: As an example of what I mean, if panel1 hits the edge of the form on the left side, it can still move top, bottom and right, as if it was a real wall.