I am trying to maximise an external application which I started using the shell command from vb.
Can anyone tell me how to do this?
Printable View
I am trying to maximise an external application which I started using the shell command from vb.
Can anyone tell me how to do this?
If you used the Shell command in VB then just pass the WindowStyle parameter, ie.
Shell "NotePad", vbMaximizedFocus
------------------
Aaron Young
Analyst Programmer
[email protected]
[email protected]
Certified AllExperts Expert
I have already managed to maximise it for the first time, but what I need now, is, when the user starts the other app, it is added to a combo box on an mdi form, and if the user minimises the other app and returns to my program, and then selects the other application from the combo box, it then maximises it again.
The reason they cannot just do it from the windows taskbar, is that the taskbar is hidden permanently.
Do you have any other suggestions?
I have tried AppActivate, but it does not seem to place the other app on the top of my program.
Thanks for your help.
Quote:
Originally posted by Aaron Young:
If you used the Shell command in VB then just pass the WindowStyle parameter, ie.
Shell "NotePad", vbMaximizedFocus