• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 157
  • Last Modified:

Get focus to the application that is already started...

Hi all,
 
   i start an executable. When i start the same executable i want to close the later one and i want the former to be on the top of the window list (or desktop)...
How can i achieve this.

rgds
suresh
0
chvsuresh
Asked:
chvsuresh
  • 2
  • 2
1 Solution
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
I think with the property App.PrevInstance you can check if the application is already running
Then, using the AppActivate method, you can bring the other instance to the foreground...

Hope this helps
0
 
hongjunCommented:
0
 
NetminderCommented:
A request has been made (http://www.experts-exchange.com/cleanup/Q_20320181.html) that this question be closed with the following resolution: points refund and PAQ

EXPERTS: Please leave any comment regarding this request here; I will return in seven (7) days to close the question.

Netminder
CS Moderator
0
 
NetminderCommented:
A request has been made (http://www.experts-exchange.com/cleanup/Q_20320181.html) that this question be closed with the following resolution: points refund and PAQ

EXPERTS: Please leave any comment regarding this request here; I will return in seven (7) days to close the question.

Netminder
CS Moderator
0
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
Although i said "i think", my comment should solve the question.
And hongjun's link is even more complete, as it includes the complete code...
CHeers
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now