How to give TableLayoutPanel functionality to drag drop controls between cells and swap those controls?
How to give TableLayoutPanel functionality to drag drop controls between cells and swap those
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It would be feasible if the TLP is fixed size in rows and columns and not autosizing (because an empty row or column may disappear). And it may help to fill each cell with a
Panelas parent of your controls, so you only have to swap the content of panels. Managing controls in the TLP cells themselves is a bit more complex. Come to think of it, when using a TLP in such a restricted way you might as well draw a grid of Panel controls yourself.