|
-
Oct 20th, 2001, 11:04 AM
#1
help in program on vb
How can i open another program from vb ?
-
Oct 20th, 2001, 11:06 AM
#2
Fanatic Member
-
Oct 20th, 2001, 11:55 AM
#3
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
-
Oct 20th, 2001, 12:00 PM
#4
Member
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
-
Oct 20th, 2001, 12:19 PM
#5
PowerPoster
Whilst were pontificating, lets' list them all
vbHide
vbMaximizedFocus
vbMinimizedFocus
vbMinimizedNoFocus
vbNormalFocus
vbNormalNoFocus
-
Oct 20th, 2001, 01:49 PM
#6
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|