I have been using VB for a while and come up with a question. Can you call a program from VB such as WindowsTaskManger that controls other programs and then kill the processes in it ? ? I have been trying to figue it out for like a week but i am still a novice at VB and would like some hints, pointers or help please.
Thank you
Hi there,
Kindly refer to below code segment for further understanding, hope it helps. Good luck & Take care.
vbHide 0 Window is hidden and focus is passed to the hidden window.
vbNormalFocus 1 Window has focus and is restored to its original size and position.
vbMinimizedFocus 2 Window is displayed as an icon with focus.
vbMaximizedFocus 3 Window is maximized with focus.
vbNormalNoFocus 4 Window is restored to its most recent size and position. The currently active window remains active.
vbMinimizedNoFocus 6 Window is displayed as an icon. The currently active window remains active.
-
Shell "notepad C:\test.txt", vbNormalFocus
-