Finding a Form or Control by its Handle

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a way fro me to find or get access to a Form/Control given the fact
that I know its windows handle?
 
Damian said:
Is there a way fro me to find or get access to a Form/Control given the
fact
that I know its windows handle?

\\\
Dim c As Control = Control.FromHandle(<handle>)
///

Note that this will only work with controls which are part of your
application.
 
I knew I had bumped across this before. Thanks.

Herfried K. Wagner said:
\\\
Dim c As Control = Control.FromHandle(<handle>)
///

Note that this will only work with controls which are part of your
application.
 
Back
Top