How to bring an already running application in front?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Developer111
    New Member
    • Apr 2010
    • 28

    How to bring an already running application in front?

    I am developing an application having multiple screens appearing one after another using Vs2008 on Windows Xp(sp3) in vb.net. My requirement is to bring some screens (windows form) in front of the user to take input and some of the forms can work in background (behind other applications) as they are only progress showing forms.

    I tried Me.active(), Me.BringToFront (), Me.Focus(), Appactive() and also some of the APIs like GetForegroundWi ndow(),SetForeg roundWindow(), ShowWindow() etc, but failed to do so.

    I tried another set of instructions
    Me.TopMost = True
    Me.Active()
    Me.TopMost = False

    Its works for me but once my form come in front, no other application can appear on top untill the my form is selected manually. Although I tried Me.Select() and Me.Focus() after above mentioned set of instructions but failed.

    Can anybody help to get the solution for this problem

    Thanks in Advance
Working...