Requirement:
Visual Basic 6.0
API Viewer (Comes with VB6)
1) First start Visual Basic 6.0.
2) As we know that by default Form1 is created.
3) Add a module to the project .
| Quote: |
| (Select Project>Add Module) |
4) Add another new module.
5) Rename the original form to
frmMain.
6)Rename the second module to modFunc. (This pace is for our functions
Now comes the Main Part:
Open modFunc module and write the folowing Sub
| Code: |
Sub OpenApp(File As String)
'Shells to another program
X = Shell(File)
End Sub |
Calling this sub:
OpenApp (x)
Where 'x' is the Patch or Filename of the file you want to open.
You can put full patch or short filename like
| Code: |
OpenApp(C:\Windows\shutdown.exe) |
(Don't execute this otherwise your PC will shut down.)
That's all Folks!
Hope you liked this. With this you can make a Application via which you can open many programs at once.
Actually i too learned this somewhere else andi remembered some part of it.