Docking a form on the main form

hi all,

i want to let a form dock onto the main form when you maximize it, like the
effect you get when you maximize a Word document. does anyone know how?

sakkie