Welcome to Dream.In.Code
Become a VB Expert!

Join 149,911 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 2,177 people online right now. Registration is fast and FREE... Join Now!




Opening a Shell to a set .windowstate?

 
Reply to this topicStart new topic

Opening a Shell to a set .windowstate?

geewhiz
8 Jan, 2008 - 01:04 PM
Post #1

New D.I.C Head
*

Joined: 20 Aug, 2007
Posts: 31


My Contributions
Is there any way to control the window.state of a program that I am opening with the Shell function? For Example:

CODE
sAppName = "TestProg"
sAppPath = "C:\Document and Settings\TestProg.exe"
If IsTaskRunning(sAppName) = False Then
Shell sAppPath, vbNormalFocus


Can I add other parameters to adjust the TestProg to a certain window state and screen location using types such as?

CODE
TestProg.WindowState = vbNormalFocus
TestProg.Top = 6
TestProg.Left = 189
TestProg.Height = 569
TestProg.Width = 770


I can't find any information on this.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 01:40PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month