Implemented interface member:
property
Handle
Windows.Win32.Foundation.IHandle<THandle>.Handle
2 writes to Handle
System.Private.Windows.Core (2)
Windows\Win32\Foundation\HandleRef.cs (2)
32Handle = handle; 39Handle = handle?.Handle ?? default;
26 references to Handle
System.Private.Windows.Core (5)
Windows\Win32\Foundation\HandleRef.cs (5)
43=> other.Handle.Equals(Handle) && Equals(other.Wrapper, Wrapper); 47public override int GetHashCode() => HashCode.Combine(Wrapper, Handle); 59THandle local = handle.Handle; 74public bool IsNull => Handle.Equals(default);
System.Windows.Forms (21)
System\Windows\Forms\Application.cs (1)
1198((WINDOW_STYLE)PInvokeCore.GetWindowLong(handle.Handle, WINDOW_LONG_PTR_INDEX.GWL_STYLE)).HasFlag(WINDOW_STYLE.WS_CHILD),
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.ModalMenuFilter.cs (9)
81if (_activeHwnd.Handle != value.Handle) 86if (_activeHwnd.Handle != IntPtr.Zero) 88control = Control.FromHandle(_activeHwnd.Handle); 98control = Control.FromHandle(_activeHwnd.Handle); 194if (!ActiveHwnd.Handle.IsNull) 197Control? control = Control.FromHandle(ActiveHwnd.Handle); 542if (activeWindowHandle.Handle.IsNull) 547else if (Control.FromChildHandle(activeWindowHandle.Handle) is not ToolStripDropDown
System\Windows\Forms\Dialogs\CommonDialogs\CommonDialog.cs (3)
234result = RunDialog(ownerHwnd.Handle) ? DialogResult.OK : DialogResult.Cancel; 243nint currentSubClass = PInvokeCore.GetWindowLong(ownerHwnd.Handle, WINDOW_LONG_PTR_INDEX.GWL_WNDPROC); 246PInvokeCore.SetWindowLong(ownerHwnd.Handle, WINDOW_LONG_PTR_INDEX.GWL_WNDPROC, _priorWindowProcedure);
System\Windows\Forms\Dialogs\MessageBox.cs (1)
482return (DialogResult)PInvoke.MessageBox(handle.Handle, text, caption, style);
System\Windows\Forms\Form.cs (6)
779cp.Parent = GetSafeHandle(dialogOwner).Handle; 3739desktop = Screen.FromHandle(ownerHandle.Handle); 5506if (!ownerHwnd.IsNull && ownerHwnd.Handle != HWND) 5733if (!ownerHwnd.IsNull && ownerHwnd.Handle != HWND) 5736if (PInvokeCore.GetWindowLong(ownerHwnd.Handle, WINDOW_LONG_PTR_INDEX.GWL_HWNDPARENT) == Handle) 5774activeHwnd = ownerHwnd.Handle;
System\Windows\Forms\Help\Help.cs (1)
217PInvoke.ShellExecute(handle.Handle, lpOperation: null, executable ?? fileName, executable is not null ? fileName : null, lpDirectory: null, SHOW_WINDOW_CMD.SW_NORMAL);