after log out form, the main form remains at its place.. any one will help me out for hiding it
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.
Can anyone help me out?
Update:
When I click onto login button, login page ap开发者_JAVA技巧pears 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??
I'm going to take a guess here - you have code in the FormClosing event of your Login form that creates a new instance of your main form and shows it (with Show).
精彩评论