Wiki Link: [discussion:3000]
move an object only into panel 

Feb 18 2010 at 1:35 PM
Dear Friends,

I need a help.
I have a project in C# with two panels. The first panel is not resizeble or movable. The second one is sizeable and movable. I want the second panel to move only inside the first panel and when its borders are equal to the other panel to stop moving.
Now this not happen. When I move the second panel after passing the border of the first one and check its coordinates they are for example left = -20 or top = -30. Even happens to dissapear somewhere behind the first panel.

Than you.


Updating...
Page view tracker