Results 1 to 3 of 3

Thread: Maximising an External App

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jun 1999
    Location
    South Africa
    Posts
    22

    Post

    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?

  2. #2
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177

    Post

    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

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jun 1999
    Location
    South Africa
    Posts
    22

    Post

    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.

    Originally posted by Aaron Young:
    If you used the Shell command in VB then just pass the WindowStyle parameter, ie.

    Shell "NotePad", vbMaximizedFocus


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width