set focus

B

bill

vb.net
windows form

I have a vb.net using a command button to open an external program using the
system.Diagnostics.Process.Start
What I want to do is when the external program starts have the focus set
back to the vb.net form without having to move the mouse over it. How can I
do this





Thanks
 
H

Herfried K. Wagner [MVP]

Hello,

bill said:
I have a vb.net using a command button to open an external
program using the system.Diagnostics.Process.Start
What I want to do is when the external program starts have
the focus set back to the vb.net form without having to
move the mouse over it. How can I do this

Have a look at the 'AppActivate' function if you are using VB.NET.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top