Click here to Skip to main content
13,558,882 members
Click here to Skip to main content

Tagged as


Posted 31 Jan 2011
Licenced CPOL

Swapping control into a different parent

, 31 Jan 2011
Perhaps you need to remove the control from its old parent first? Something like:m_ctrlContainer.Parent.Controls.Remove(m_ctrlContainer);this.Controls.Add(m_ctrlContainer);



Compare Revision Minor Date Status Editor
2 - publicly available No 31-Jan-11 12:13 Available AspDotNetDev
1 No 31-Jan-11 12:11 Composing AspDotNetDev


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Web Developer
United States United States

  • Managing Your JavaScript Library in ASP.NET (if you work with and you don't read that, you are dead to me).
  • Graduated summa cum laude with a BS in Computer Science.
  • Wrote some articles and some tips.
  • DDR ("New high score? What does that mean? Did I break it?"), ping pong, and volleyball enthusiast.
  • Software I have donated to (you should too):

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.180515.1 | Last Updated 31 Jan 2011
Article Copyright 2011 by AspDotNetDev
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid