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
 

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

Back
Top