Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hello,

How can I regain focus on my Form application after calling an external program (dos executable). Here is the sernario:

 

1. Init the main form A.

2. Form A call an external program (B) which run for about 2 seconds.

3. External progrmam return and A continue the normal code to the end of a init sub routine.

 

For some reason, the focus is not at form A after the external program B run. I have tried "Me.focus" and other method but still could not regain the focus to my form A. Is there anyway I can get it back after program B run?

Thank you very much for your help,

 

 

HN

  • 2 weeks later...
Posted

Thank you for your help divil, but bringtofront() does not work because it only apply with in the form. The problem is the whole form goes to inactive window so it does not help.

 

HN

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...