How to copy styles from a form?