Link to home
Start Free TrialLog in
Avatar of gem56
gem56

asked on

How to relocate a Panel control to a TableLayoutPanel at runtime

Hi guys,
Is it possible to relocate a Panel control from Form.Panel.Controls to Form.Panel.TableLayoutPanel.Controls at runtime.

Thanks,
     Michael
SOLUTION
Avatar of Fernando Soto
Fernando Soto
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gem56
gem56

ASKER

Thanks guys,
webtubbs, your approach is shorter however would that not result in 'Panel1' appearing in both collections whereas FernandoSoto's would only appear in the new collection?

/Michael
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gem56

ASKER

Thanks for clarifying that point Bob.
/Michael
You're welcome!

For future reference though:

    Idle_Mind --> Mike
    https://www.experts-exchange.com/M_1539809.html
   
    TheLearnedOne --> Bob
    https://www.experts-exchange.com/M_38421.html

;)
Avatar of gem56

ASKER

Ooopps!    
;-)