By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,882 Members | 2,465 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,882 IT Pros & Developers. It's quick & easy.

How to bring an already running application in front?

P: 28
I am developing an application having multiple screens appearing one after another using Vs2008 on Windows Xp(sp3) in 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.BringToFront(), Me.Focus(), Appactive() and also some of the APIs like GetForegroundWindow(),SetForegroundWindow(), ShowWindow() etc, but failed to do so.

I tried another set of instructions
Me.TopMost = True
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
Jul 19 '10 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.