How to know total height of the form