Find Code:
All Words
Any of the Words
Exact Phrase
Home
:
Code
:
Forums
:
Submit
:
Mailing List
:
About
:
Contact
Code
All
VB.NET
ASP.NET
C#
VB Classic
ASP Classic
Snippets
Popular
Resources
Submit Code
Forums
Articles
Tips
Links
Books
Contest
Link to us
Close any App from VB
Author:
Krishna
E-mail:
Click to e-mail author
Submitted:
8/2/2006
Version:
VB6
Compatibility:
VB6
Category:
Miscellaneous
Views:
8850
You can close any application from VB using sendkeys.
Declarations:
'none
Code:
Dim LRETVAL Dim oShell As Object Dim oRecord Dim strFileToLaunch Set oShell = CreateObject("WScript.Shell") ' If (oShell.AppActivate("Acrobat Reader") = False) Then ' End 'End If oShell.AppActivate "Acrobat Reader" oShell.SendKeys "%{F4}"
Home
|
Forums
|
Submit
|
Books
|
Mailing List
|
Advertising
|
About
|
Contact
© 2024 A1VBCode. All rights reserved.
Legal disclaimer & terms of use
Privacy statement