ITCDevloper
asked on
Closing a Particular application from VB
Hi,
How can i close a particular application from VB code.
I am running 4-5 applications and I want to hit a button which will close a particular application so that i do not need to go into that application and press exit/close.
That small vb form will work as a model form which will be on the top of all the windows.
Thanks
How can i close a particular application from VB code.
I am running 4-5 applications and I want to hit a button which will close a particular application so that i do not need to go into that application and press exit/close.
That small vb form will work as a model form which will be on the top of all the windows.
Thanks
ASKER
Hi Anil,
This code works only if I know the title of the application,
my application title always change when I open a form or record, the header/title shows the opened form name and record name.
Thanks
Ajay
This code works only if I know the title of the application,
my application title always change when I open a form or record, the header/title shows the opened form name and record name.
Thanks
Ajay
the best way to do this would be to make your program start the processes itself and record the process id, then use this to terminate the appropriate app..
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I thinnks this will help you
http://support.microsoft.com/default.aspx?scid=KB;en-us;q153463
http://support.microsoft.com/default.aspx?scid=KB;en-us;q176391
http://www.vbcity.com/forums/topic.asp?tid=21930
Anil [Quickoutsource]