How can I add a control into two different containers at the same time?
For example: I have TabPage1, TabPage2 and a textbox control. I want the textbox be added into both TabPage1 and TabPage2 at the same time.
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.
I believe that it’s not possible to have a control in two containers at the same time. A simple workaround, which works most of the time (especially in case of tab control), is to move the control from one container to the other when the other container becomes visible (for example when the user switches tab pages).