decrypt Posted September 3, 2005 Posted September 3, 2005 I'm trying to make control that contains panels of buttons that can be moved around inside the control. How could I make the panels movable by the user? Quote
Diesel Posted September 4, 2005 Posted September 4, 2005 Override the mouse down event, set a flag (ex. mouseDown = true) Override the mouse up event, set the flag to false Override the mousemove event, check for the mouseDown flag and change the location of the panel relative to the mouse movement. You might want to change the cursor when it is over a moveable panel or give the panel a border if it is not distinct on the form. Quote
AlexCode Posted September 4, 2005 Posted September 4, 2005 Take a look here: http://www.xtremedotnettalk.com/showthread.php?t=85168 This is an old thread of mine, read it all and you'll find your code there. Alex :p Quote Software bugs are impossible to detect by anybody except the end user.
AlexCode Posted September 4, 2005 Posted September 4, 2005 Glad u liked it! :) Alex :p Quote Software bugs are impossible to detect by anybody except the end user.
decrypt Posted September 4, 2005 Author Posted September 4, 2005 It works perfectly. Thanks a lot :D Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.