4 writes to handle
System.Windows.Forms (4)
winforms\Managed\System\WinForms\NativeWindow.cs (4)
594this.handle = handle; 860handle = IntPtr.Zero; 1095w.handle = IntPtr.Zero; 1160handle = IntPtr.Zero;
19 references to handle
System.Windows.Forms (19)
winforms\Managed\System\WinForms\NativeWindow.cs (19)
165h = handle; 169if (handle != IntPtr.Zero) { 174if (UnsafeNativeMethods.IsWindow(new HandleRef(null, handle))) { 176int id = SafeNativeMethods.GetWindowThreadProcessId(new HandleRef(null, handle), out lpdwProcessId); 185if (UnsafeNativeMethods.SendMessageTimeout(new HandleRef(null, handle), 194if (handle != IntPtr.Zero) { 237return handle; 598var handleDpiContext = CommonUnsafeNativeMethods.TryGetDpiAwarenessContextForWindow(this.handle); 693if (handle != IntPtr.Zero) { 734if (this.handle != IntPtr.Zero) { 854if (handle != IntPtr.Zero) { 855if (!UnsafeNativeMethods.DestroyWindow(new HandleRef(this, handle))) { 858UnsafeNativeMethods.PostMessage(new HandleRef(this, handle), NativeMethods.WM_CLOSE, 0, 0); 1145if (handle != IntPtr.Zero) { 1148if (handle != IntPtr.Zero) { 1153RemoveWindowFromTable(handle, this); 1156System.Internal.HandleCollector.Remove(handle, NativeMethods.CommonHandles.Window); 1361HandleRef href = new HandleRef(this, handle); 1365IntPtr currentWinPrc = UnsafeNativeMethods.GetWindowLong(new HandleRef(this, handle), NativeMethods.GWL_WNDPROC);