MSDN Archive Home
Help and FAQs
MSDN Code Gallery Information and Discussion
All Resource Updates
Create New Discussion
Move an object only in a panel.
Feb 18 2010 at 1:34 PM
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.
Sign in to post message or set email notifications
Manage Your Profile
MSDN Flash Newsletter
© 2008 Microsoft Corporation. All rights reserved.