How to dock an object at runtime (using code) and at design time

How can I dock a TPanel or a TForm at runtime and at design time using
code?

-Petter-

--
Petter Holmstr?m
E-mail: mailto:petter.holmst...@parnet.fi
Home page: http://www.parnet.fi/~pkh/