microsoft.public.dotnet.faqs,microsoft.public.dotnet.framework,microsoft.public.dotnet.framework.win

Discussion in 'ASP .Net' started by Charles A. Lackman, Dec 6, 2004.

  1. Hello,

    I have created an application that searches to see if a process is running
    and if it is it maximizes it's window.

    i.e.

    For Each AProcess In AProcesses
    If AProcess.StartInfo.WindowStyle <> ProcessWindowStyle.Maximized Then
    AProcess.StartInfo.WindowStyle = ProcessWindowStyle.Maximized
    ShowWindow(AProcess.MainWindowHandle, 3)
    End If
    Next

    Is there also a way to make the window "BRING TO FRONT" also?

    Thanks,

    Chuck
     
    Charles A. Lackman, Dec 6, 2004
    #1
    1. Advertising

  2. Charles A. Lackman

    smith Guest

    Win32 API SetWindowPos still works fine for me.

    Have some code:

    http://www.smithvoice.com/netinstance.htm

    Your snippet mixed into that would be interesting.

    Robert Smith
    Kirkland, WA

    "Charles A. Lackman" <> wrote in message
    news:%...
    > Hello,
    >
    > I have created an application that searches to see if a process is running
    > and if it is it maximizes it's window.
    >
    > i.e.
    >
    > For Each AProcess In AProcesses
    > If AProcess.StartInfo.WindowStyle <> ProcessWindowStyle.Maximized Then
    > AProcess.StartInfo.WindowStyle = ProcessWindowStyle.Maximized
    > ShowWindow(AProcess.MainWindowHandle, 3)
    > End If
    > Next
    >
    > Is there also a way to make the window "BRING TO FRONT" also?
    >
    > Thanks,
    >
    > Chuck
    >
     
    smith, Dec 8, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. ravi

    send dotnet faqs

    ravi, Sep 29, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    1,006
  2. SpamProof
    Replies:
    0
    Views:
    582
    SpamProof
    Oct 21, 2003
  3. Replies:
    0
    Views:
    962
  4. Krist
    Replies:
    6
    Views:
    754
    Arne Vajhøj
    May 7, 2010
  5. Alfred Sehmueller
    Replies:
    0
    Views:
    267
    Alfred Sehmueller
    Feb 20, 2004
Loading...

Share This Page