Results 1 to 6 of 6

Thread: help in program on vb

  1. #1
    ronny062
    Guest

    Question help in program on vb

    How can i open another program from vb ?

  2. #2
    Fanatic Member Kings's Avatar
    Join Date
    Aug 2001
    Posts
    673
    VB Code:
    1. Shell "c:\myprogram.exe"
    K i n g s

  3. #3
    Megatron
    Guest
    If you want the program to run in normal mode (not minimized) then you need to specify 1 for the last argument.
    Code:
    Shell "c:\myprogram.exe", 1

  4. #4
    Originally posted by Megatron
    If you want the program to run in normal mode (not minimized) then you need to specify 1 for the last argument.
    Code:
    Shell "c:\myprogram.exe", 1
    Of all people I didn't expect you to use a hard-coded constant.

    Shell "c:\myprogram.exe", vbNormalFocus

  5. #5
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    Whilst were pontificating, lets' list them all

    vbHide
    vbMaximizedFocus
    vbMinimizedFocus
    vbMinimizedNoFocus
    vbNormalFocus
    vbNormalNoFocus

  6. #6
    Megatron
    Guest
    Originally posted by filburt1


    Of all people I didn't expect you to use a hard-coded constant.

    Shell "c:\myprogram.exe", vbNormalFocus
    When the number is small (e.g: 1, -1, 3 etc.) I'll use it, otherwise, I'd rather use a constant than &H4AA4.

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