Exit button
-
I have a form and if you load another form from that, the first form gets hidden, but not closed, so, how can I get the whole application to close if the exit button on the top right corner of the program is cliced rather than the exit button I placed?
In the end we're all just the same
-
I have a form and if you load another form from that, the first form gets hidden, but not closed, so, how can I get the whole application to close if the exit button on the top right corner of the program is cliced rather than the exit button I placed?
In the end we're all just the same
-
hi to close the application use - application.close() & to close the current form simply use - me.close()
Thanks bye
But I used FrmFinance.hide () as I wanteded it that way because I had information I wanted to display on it temp while the application was open. If I put frmFinance.close () you would lose the information
In the end we're all just the same
-
But I used FrmFinance.hide () as I wanteded it that way because I had information I wanted to display on it temp while the application was open. If I put frmFinance.close () you would lose the information
In the end we're all just the same
depends on what you want say you have 2 forms frm1 and frm2 frm2 is opened by clicking a button on frm1 then you can hide frm1 like you are doing without problems now from here it depends on what you want if you want both forms to close when the user presses the close button from frm2 you use application.close if you only want frm2 to close you use me.close (and bring frm1 back out of hiding) use the frm2.close event to do this hope it helps
If my help was helpfull let me know, if not let me know why. The only way we learn is by making mistakes.