Form.FromHandle()

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

Guest

Hi

I use the GetWindow API to get a handle of an already loaded .NET Window.Form object
My requirement is to get the corresponding Window.Form object from this handle, so that I can manipulate it

When i try to use Form.FromHandle(), I get a null object, even though the handle is a valid one
Is there something that I need to do in addition to the above

Thanking you
 
Is the Form object in the same process and appdomain as the calling
code? I believe it must be for FromHandle to succeed.



Mattias
 
Back
Top