|
-
May 4th, 2006, 09:27 AM
#1
Thread Starter
Lively Member
AppWinStyle.Hide does not hide the .exe
Hi everyone,
I'm writing a service that will take care of administrative things.
I'm using the summation object model, but when I launch ws32.exe(this is the summation app) AppWinStyle.Hide does not hide the summation UI.
I need summation to be running to take advantage of it's object model, yet I don't want the UI.
Any other way, other than
VB Code:
Shell(sumPath, AppWinStyle.Hide, True, -1)
that I can really hide the UI.
Thanks
-
May 4th, 2006, 06:59 PM
#2
Re: AppWinStyle.Hide does not hide the .exe
Don't use Shell in .NET apps. Use Process.Start.
VB Code:
Dim psi As New ProcessStartInfo("file path here")
psi.CreateNoWindow = True
'Set other properties if required.
Dim myProc As Process = Process.Start(psi)
You don't have to keep the Process reference returned by Process.Start but if you do it will allow you to manipulate it to a certain degree, like shut it down later on.
-
May 29th, 2006, 03:05 AM
#3
Thread Starter
Lively Member
Re: AppWinStyle.Hide does not hide the .exe
Sorry I did not reply sooner. This helped alot.
Thanks!
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
|