CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    Finishing soon if you can help

    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.


  2. #2
    Join Date
    Mar 2000
    Posts
    24

    Re: Finishing soon if you can help

    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






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

Featured