input focus

  • Thread starter Thread starter =?ISO-8859-1?Q?M=E9sz=E1ros_Tam=E1s?=
  • Start date Start date
?

=?ISO-8859-1?Q?M=E9sz=E1ros_Tam=E1s?=

Hi all,

how can i get the active control (which has the input focus) in an other
application? I have the handle of the active window, but I can't reach
the active control.

Any idea?

Thanks,

Tamas Meszaros
 
If you have a Form... then, this.ActiveControl(), will give you the
ActiveControl in the form.
 
But this isn't my app, the target application is for example a browser,
and I only have an IntPtr handle from this application. Can I get its
active control as well?

Tamas
 
this valid for only Windows Forms... if you are using external executables..
then I belivie you can achivie using Reflections (System.Reflection
namespace), I don't have a sample of hand... did u try google?

VJ
 
Back
Top