Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / General 2 / August 2004



Tip: Looking for answers? Try searching our database.

Killing a APP

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Frank R. Jr. - 30 Aug 2004 05:32 GMT
How Can u Kill a application all ready running with a program made by vb

Signature

Frank R. Jr.

arko - 31 Aug 2004 15:54 GMT
This should do it:

AppActivate "program", True
SendKeys "%{F4}", True

'program' should be the text written in the application titlebar.

If you started the program yourself from VB you can use the id shell
returned, like in:

dim id as long
id = Shell ("calc.exe")
appactivate id,True
sendkeys "%{F4}",True

Good luck with it.

Arjen

> How Can u Kill a application all ready running with a program made by vb
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.