How to get form handle

  • Thread starter Thread starter GAEL
  • Start date Start date
G

GAEL

I would like to know a function that returns the handle
of a form. The type has to be HWND.

I know that there is a funtion (this.Handle) that gives
me a handle of type IntPtr but the type I need is HWND.

How can I do?
 
I would like to know a function that returns the handle
of a form. The type has to be HWND.

I know that there is a funtion (this.Handle) that gives
me a handle of type IntPtr but the type I need is HWND.

How can I do?

Well, isn't HWND just a void* ? Just use the instance member function
IntPtr.ToPointer() to get a void*.
 
Back
Top