D
Dino M. Buljubasic
I know this sounds ridiculous but I am having problems when exiting/sighing
out of my application.
I have two forms, Login and Main. On Main form, I have two buttons, Sign
Out and Exit. These two buttons and the close button (X) should ask user to
confirm exiting or signing out, then if Yes, they should write log file and
then do:
- When I click exit, I should close both, main and login form.
- when I click Sign out, I should close only main and show login form.
That is simple, but the problem starts when I want my X (close button on
main form, upper right corner) to behave the same way as my Exit button.
Any help will be appreciated
out of my application.
I have two forms, Login and Main. On Main form, I have two buttons, Sign
Out and Exit. These two buttons and the close button (X) should ask user to
confirm exiting or signing out, then if Yes, they should write log file and
then do:
- When I click exit, I should close both, main and login form.
- when I click Sign out, I should close only main and show login form.
That is simple, but the problem starts when I want my X (close button on
main form, upper right corner) to behave the same way as my Exit button.
Any help will be appreciated
