Converting IntPtr to HWND

  • Thread starter Thread starter Alison Kakoschke
  • Start date Start date
A

Alison Kakoschke

I need to convert an IntPtr (as returned from the Form,
get_Handle() method) to an HWND but can't find any
information as to how it is done. I've tried everything
I can think of and always seem to get an undefined value
for the pHandle.

HWND pHandle = (HWND)(void*)dataFormChild->get_Handle();

Thanks

Alison Kakoschke.
 
Back
Top