hello...i want to exit completely from vb application upon clicking a command button that i will create... please post the codes.
thanx in advance.
exit vb6.0command button to exit from vb application
Page 1 of 1
6 Replies - 10311 Views - Last Post: 10 July 2008 - 09:58 AM
Replies To: exit vb6.0
#3
Re: exit vb6.0
Posted 09 July 2008 - 09:24 PM
I know of one, simple, little, 3 letter, word that, if put in your Command_Click event, will close your application. Ready, drum roll please...
End
#5
Re: exit vb6.0
Posted 10 July 2008 - 12:51 AM
Psycho is right.
Even for Single-form programs, you should unload the form instead of using End.
The End statement abruptly quits the application but it does not invoke the Unload, QueryUnload, Terminate event, or other custom events or functions and hence will not be executed.
Although End closes files opened with the Open Statement and frees all memory resources used by your program, you should avoid using the End Statement for the reason mentioned above.
Even for Single-form programs, you should unload the form instead of using End.
The End statement abruptly quits the application but it does not invoke the Unload, QueryUnload, Terminate event, or other custom events or functions and hence will not be executed.
Although End closes files opened with the Open Statement and frees all memory resources used by your program, you should avoid using the End Statement for the reason mentioned above.
#6
Re: exit vb6.0
Posted 10 July 2008 - 01:24 AM
Put Command Button in a Form and On Click Event of CommandButton
Private sub Command1_Click() 'Quiting From Application End End Sub Put Command Button in a Form and On Click Event of CommandButton [code] Private sub Command1_Click() 'Quiting From Application End End Sub
#7
Re: exit vb6.0
Posted 10 July 2008 - 09:58 AM
vikranta1, on 10 Jul, 2008 - 03:24 AM, said:
Put Command Button in a Form and On Click Event of CommandButton
Private sub Command1_Click() 'Quiting From Application End End Sub Put Command Button in a Form and On Click Event of CommandButton [code] Private sub Command1_Click() 'Quiting From Application End End Sub
Have you even read the other 4 replies to this thread???
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote









|