When showing a form, I'd like it appear like "sliding"

(or from small dot to full-size form, I mean like in Excel spreadsheet way)

And when hiding/unloading a form, i'd like it work

in a reverse way.(from full-size form to small)

How can I do that?