Click to See Complete Forum and Search --> : Finishing soon if you can help


March 9th, 2000, 11:47 PM
I would like to run an application in VB but the problem is that the application is programmed to maximized when it is executed. I am using Shell commmand but to no avail. So i'm thinking of create a smaller window so that this application can run in it. The problem is, i am not very sure on this. Out there is there anyone who know and can provide any kind of samples or commands.
Many thanks in advance.

DSL
March 10th, 2000, 12:19 AM
well i dont really understand what your saying all that much, but if your trying to run a program that is programmed to start up in the max windowstate, you cant make it be any other window state, try using these shell functions:

Shell "c:\windows\pbrush.exe", vbNormalFocus
Shell "c:\windows\pbrush.exe",vbNormalNoFocus
Shell "c:\windows\pbrush.exe", vbHide
Shell "c:\windows\pbrush.exe", vbMaximizedFocus
Shell "c:\windows\pbrush.exe", vbMinimizedFocus
Shell "c:\windows\pbrush.exe", vbMinimizedNoFocus