• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 155
  • 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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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