Panel (container) added after member controls

  • Thread starter Thread starter Ondrej Sevecek
  • Start date Start date
O

Ondrej Sevecek

Hello,
I would like to add now (after some controls already added) new "panel".
When I add the panel to the form, I want to move previously added controls
to be managed (anchored, padded) to the panel, but they are still related to
the base form, where they were created at first. How to move them to the
panel?

Ondra.
 
Hi,

Is it at run-time or design-time?
If it is at design time the panel may cover the controls so you can't drag
'n' drop them.. So, cut them place the panel and past them back on the
panel.
If it is at run-time remove them form the parent Controls collection (be
aware of "removing focused control bug"), put the panel into Controls
collection and add the controls to the panel's Controls in the same order as
they were before.

HTH
B\rgds
100
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top