after log out form, the main form remains at its place.. any one will help me out for hiding it
<p>When I login into my application the main form appears but when I log out, the main form remains at its position. I want such that when I log out, the main form should be hidden.</p>

<p>Can anyone help me out?</p>

<h3>Update:</h3>

<p>When I click onto login button, login page appears and when I enter the user id and password it proceeds to main form. When I log out, the main form appears and the controls transfer back to the log in page.  I need to hide that main form when it logs out.  Is it clear now??</p>
