Button functionality in the invoke code activity

Any leads on how to close a form using a button in the invoke code activity?