Q: Using SHELL with focus
Brian Jones; thefiddler@hotmail.com wrote: I know how to open a program through the Shell("C:\windows\explorer.exe") but how do I make it so that the program that I'm running starts up in a vbminimizedfocus state. I looked at the help files with vb5 but I still...
Q: From the help file ' Specifying 1 as the second argument opens the application in ' normal size and gives it the focus. Dim RetVal RetVal = Shell("C:\WINDOWS\CALC.EXE", 1) ' Run Calculator. 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. Return