Results 1 to 3 of 3

Thread: AppWinStyle.Hide does not hide the .exe

  1. #1

    Thread Starter
    Lively Member SpagettiProg's Avatar
    Join Date
    Dec 2004
    Location
    Miami, Florida
    Posts
    82

    Question 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:
    1. Shell(sumPath, AppWinStyle.Hide, True, -1)

    that I can really hide the UI.


    Thanks

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: AppWinStyle.Hide does not hide the .exe

    Don't use Shell in .NET apps. Use Process.Start.
    VB Code:
    1. Dim psi As New ProcessStartInfo("file path here")
    2.  
    3.         psi.CreateNoWindow = True
    4.         'Set other properties if required.
    5.  
    6.         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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Lively Member SpagettiProg's Avatar
    Join Date
    Dec 2004
    Location
    Miami, Florida
    Posts
    82

    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
  •  



Click Here to Expand Forum to Full Width