No, keeping the value of the window handle around won't keep the window from being destroyed or its resources from being fully released.
The GC is not responsible for releasing the unmanaged resources of the form (said resources being the window handle; this is ultimately released through DestroyWindow
), and neither does it treat IntPtr
members in a special manner.