Link to home
Start Free TrialLog in
Avatar of ITCDevloper
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
Avatar of anilmane
anilmane

Avatar of ITCDevloper

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
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
Avatar of Eduard Ghergu
Eduard Ghergu
Flag of Romania image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial