Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have two EXE files open.

When I click on the other one gets focus and other leaves focus.

By this way I want to refresh GridView in Both EXE when they get focus.

What I did was I have written the refreshing code in the FORM FOCUS AND LEAVE EVENT.

Eventually to check this process I created a message box to show the details since break points are not available while loading EXE files.

But I didn't get any message box and my refreshing code didn't work at all.

What may be the possible cause.

My question may be silly to Programming Genius people. But I need to get rid of this problem.
Posted
Comments
Thanks7872 29-Jul-14 3:23am    
And visual studio was invented especially to use debugger.

1 solution

Form focus only works within one application (when switching between form within that application) and when you switch applications the form is already focused.

Try refreshing your GridView on a Timer instead.
 
Share this answer
 
Comments
KUMAR619 29-Jul-14 3:31am    
Please say any other method than timer
Mehdi Gholam 29-Jul-14 3:42am    
You can use MouseMouse, or create a refresh Button.
KUMAR619 29-Jul-14 3:44am    
I am already having a refresh button.
I wanted to do it when I Focus that EXE which has 1 active form
Thanks I am going to try Mouse Move Event which may work when I hover over that exe

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900