7 implementations of IWin32Window
PresentationUI (1)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (1)
2282private class WrapperIWin32Window : System.Windows.Forms.IWin32Window
System.Windows.Forms (4)
System\Windows\Forms\Control.cs (1)
45IWin32Window,
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
19IWin32Window,
System\Windows\Forms\Dialogs\TaskDialog\TaskDialog.cs (1)
31public partial class TaskDialog : IWin32Window
System\Windows\Forms\NativeWindow.cs (1)
14public unsafe partial class NativeWindow : MarshalByRefObject, IWin32Window, IHandle<HWND>
System.Windows.Forms.Tests (2)
System\Windows\Forms\DrawToolTipEventArgsTests.cs (1)
83private class SubWin32Window : IWin32Window
System\Windows\Forms\PopupEventArgsTests.cs (1)
47private class SubWin32Window : IWin32Window
132 references to IWin32Window
Microsoft.VisualBasic.Forms (5)
Microsoft\VisualBasic\Interaction.InputBoxHandler.vb (2)
12Private ReadOnly _parentWindow As IWin32Window 20Public Sub New(Prompt As String, Title As String, DefaultResponse As String, XPos As Integer, YPos As Integer, ParentWindow As IWin32Window)
Microsoft\VisualBasic\Interaction.vb (3)
94Private Function InternalInputBox(prompt As String, title As String, defaultResponse As String, xPos As Integer, yPos As Integer, parentWindow As IWin32Window) As String 203Dim parentWindow As IWin32Window = Nothing 241Dim parentWindow As IWin32Window = Nothing
Microsoft.VisualBasic.Forms.Tests (2)
System\Windows\Forms\CompilerServices.TestVbHost.vb (1)
18Public Function GetParentWindow() As IWin32Window Implements IVbHost.GetParentWindow
System\Windows\Forms\InteractionTests.vb (1)
27CType(inputHandler.TestAccessor.Dynamic()._parentWindow, IWin32Window).Should.Be(Nothing)
PresentationUI (6)
MS\Internal\Documents\Application\FilePresentation.cs (1)
62IWin32Window rbw = null;
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (3)
190public System.Windows.Forms.IWin32Window RootBrowserWindow 2267private System.Windows.Forms.IWin32Window _rootBrowserWindow; 2297IntPtr System.Windows.Forms.IWin32Window.Handle
MS\Internal\Documents\DocumentSignatureManager.cs (2)
247System.Windows.Forms.IWin32Window parentWindow = 282System.Windows.Forms.IWin32Window parentWindow =
System.Windows.Forms (80)
src\Common\src\RTLAwareMessageBox.cs (1)
17IWin32Window? owner,
System\Windows\Forms\ActiveX\AxHost.AxComponentEditor.cs (1)
15public override bool EditComponent(ITypeDescriptorContext? context, object obj, IWin32Window? parent)
System\Windows\Forms\ComponentModel\COM2Interop\COM2ComponentEditor.cs (1)
49public override unsafe bool EditComponent(ITypeDescriptorContext? context, object obj, IWin32Window? parent)
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyBuilderUITypeEditor.cs (1)
36IWin32Window parent = uiSvc.GetDialogOwnerWindow();
System\Windows\Forms\Control.cs (3)
5660/// Otherwise, returns <see cref="IWin32Window.Handle"/> after validating the handle is valid. 5662internal static HandleRef<HWND> GetSafeHandle(IWin32Window window) 12703IWin32Window IKeyboardToolTip.GetOwnerWindow() => this;
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
339IWin32Window? IKeyboardToolTip.GetOwnerWindow() => DataGridView;
System\Windows\Forms\Controls\ListView\ListViewItem.IKeyboardToolTip.cs (1)
64IWin32Window? IKeyboardToolTip.GetOwnerWindow() => _listView;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (1)
209internal static unsafe ToolStripDropDownMenu FromHMenu(HMENU hmenu, IWin32Window targetWindow)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
3603IWin32Window IKeyboardToolTip.GetOwnerWindow()
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (2)
118internal ToolStripMenuItem(HMENU hmenu, int nativeMenuCommandId, IWin32Window targetWindow) 1084internal void SetNativeTargetWindow(IWin32Window window)
System\Windows\Forms\Controls\TreeView\TreeNode.IKeyboardToolTip.cs (1)
39IWin32Window? IKeyboardToolTip.GetOwnerWindow() => TreeView;
System\Windows\Forms\Design\ComponentEditorForm.cs (2)
450public virtual DialogResult ShowForm(IWin32Window? owner) 458public virtual DialogResult ShowForm(IWin32Window? owner, int page)
System\Windows\Forms\Design\IUIService.cs (2)
29IWin32Window GetDialogOwnerWindow(); 39bool ShowComponentEditor(object component, IWin32Window parent);
System\Windows\Forms\Design\WindowsFormsComponentEditor.cs (2)
25public bool EditComponent(object component, IWin32Window? owner) 33public virtual bool EditComponent(ITypeDescriptorContext? context, object component, IWin32Window? owner)
System\Windows\Forms\Dialogs\CommonDialogs\CommonDialog.cs (1)
167public DialogResult ShowDialog(IWin32Window? owner)
System\Windows\Forms\Dialogs\MessageBox.cs (13)
41IWin32Window? owner, 161IWin32Window? owner, 195IWin32Window? owner, 230IWin32Window? owner, 267IWin32Window? owner, 350IWin32Window? owner, 365IWin32Window? owner, 379IWin32Window? owner, 392IWin32Window? owner, 403public static DialogResult Show(IWin32Window? owner, string? text, string? caption) 411public static DialogResult Show(IWin32Window? owner, string? text) 417IWin32Window? owner, 441IWin32Window? owner,
System\Windows\Forms\Dialogs\TaskDialog\TaskDialog.cs (2)
362IWin32Window owner, 492IWin32Window owner,
System\Windows\Forms\Form.cs (13)
780if (Properties.TryGetValue(s_propDialogOwner, out IWin32Window? dialogOwner)) 3658IWin32Window? dialogOwner = Properties.GetValueOrDefault<IWin32Window>(s_propDialogOwner); 5340/// The optional owner window that implements <see cref="IWin32Window"/>. 5370public void Show(IWin32Window? owner) 5434/// The optional owner window that implements <see cref="IWin32Window"/>. 5489public async Task ShowAsync(IWin32Window? owner = null) 5528void ShowFormInternally(IWin32Window? owner) 5564public DialogResult ShowDialog(IWin32Window? owner) 5765/// Any object that implements <see cref="IWin32Window"/> 5800public Task<DialogResult> ShowDialogAsync(IWin32Window owner) => ShowDialogAsyncInternal(owner); 5802private Task<DialogResult> ShowDialogAsyncInternal(IWin32Window? owner) 5828void ShowDialogProc(ref TaskCompletionSource<DialogResult> modalFormCompletion, IWin32Window? owner = default)
System\Windows\Forms\Internal\Win32WindowExtensions.cs (1)
8public static WINDOW_EX_STYLE GetExtendedStyle(this IWin32Window window)
System\Windows\Forms\MDI\MdiControlStrip.ControlBoxMenuItem.cs (1)
11internal ControlBoxMenuItem(HMENU hMenu, uint nativeMenuCommandId, IWin32Window targetWindow)
System\Windows\Forms\MDI\MDIControlStrip.cs (2)
18private IWin32Window _target; 24public MdiControlStrip(IWin32Window target)
System\Windows\Forms\ToolTip\DrawToolTipEventArgs.cs (2)
21IWin32Window? associatedWindow, 47public IWin32Window? AssociatedWindow { get; }
System\Windows\Forms\ToolTip\IKeyboardToolTip.cs (1)
46IWin32Window? GetOwnerWindow();
System\Windows\Forms\ToolTip\PopupEventArgs.cs (2)
17public PopupEventArgs(IWin32Window? associatedWindow, Control? associatedControl, bool isBalloon, Size size) 28public IWin32Window? AssociatedWindow { get; }
System\Windows\Forms\ToolTip\ToolTip.cs (20)
125IWin32Window? ownerWindow = currentTool.GetOwnerWindow(); 300private bool IsWindowActive(IWin32Window window) 987private ToolInfoWrapper<HandleRef<HWND>> GetWinTOOLINFO(IWin32Window window) 1305private void ShowTooltip(string? text, IWin32Window window, int duration) 1375public void Show(string? text, IWin32Window window) 1388public void Show(string? text, IWin32Window window, int duration) 1402public void Show(string? text, IWin32Window window, Point point) 1421public void Show(string? text, IWin32Window window, Point point, int duration) 1441public void Show(string? text, IWin32Window window, int x, int y) 1458public void Show(string? text, IWin32Window window, int x, int y, int duration) 1484var ownerWindow = tool.GetOwnerWindow(); 1522private bool TryGetBubbleSize(IWin32Window ownerWindow, out Size bubbleSize) 1720public void Hide(IWin32Window win) 1790private void SetTool(IWin32Window window, string? text, TipInfo.Type type, Point position) 1876private void StartTimer(IWin32Window owner, int interval) 1976IWin32Window? window = GetCurrentToolWindow(); 1996IWin32Window? window = GetCurrentToolWindow(); 2029IWin32Window? window = GetCurrentToolWindow(); 2221if (GetCurrentToolWindow() is not IWin32Window window) 2321IWin32Window? window = GetCurrentToolWindow();
System\Windows\Forms\ToolTip\ToolTip.ToolTipTimer.cs (2)
10public ToolTipTimer(IWin32Window owner) : base() 15public IWin32Window Host { get; }
System.Windows.Forms.Design (13)
src\Common\src\RTLAwareMessageBox.cs (1)
17IWin32Window? owner,
System\ComponentModel\Design\DataSourceProviderService.cs (2)
18public abstract DataSourceGroup InvokeAddNewDataSource(IWin32Window parentWindow, FormStartPosition startPosition); 20public abstract bool InvokeConfigureDataSource(IWin32Window parentWindow, FormStartPosition startPosition, DataSourceDescriptor dataSourceDescriptor);
System\ComponentModel\Design\DesignerActionUI.cs (1)
35private readonly IWin32Window? _mainParentWindow;
System\ComponentModel\Design\DesignerActionUI.DesignerActionToolStripDropDown.cs (2)
14private readonly IWin32Window? _mainParentWindow; 20public DesignerActionToolStripDropDown(DesignerActionUI designerActionUI, IWin32Window? mainParentWindow)
System\Windows\Forms\Design\CollectionEditVerbManager.cs (1)
178return dialog.ShowDialog(_designer.Component as IWin32Window);
System\Windows\Forms\Design\CommandSet.cs (2)
312IWin32Window? parent = null; 315if (obj is IWin32Window)
System\Windows\Forms\Design\DataSourceProviderService.cs (2)
16public abstract DataSourceGroup InvokeAddNewDataSource(IWin32Window parentWindow, FormStartPosition startPosition); 18public abstract bool InvokeConfigureDataSource(IWin32Window parentWindow, FormStartPosition startPosition, DataSourceDescriptor dataSourceDescriptor);
System\Windows\Forms\Design\EditorServiceContext.cs (1)
132return dialog.ShowDialog(_designer.Component as IWin32Window);
System\Windows\Forms\Design\FolderNameEditor.FolderBrowser.cs (1)
51public unsafe DialogResult ShowDialog(IWin32Window? owner)
System.Windows.Forms.Tests (24)
System\Windows\Forms\CommonDialogTests.cs (3)
112var owner = new Mock<IWin32Window>(MockBehavior.Strict); 136var owner = new Mock<IWin32Window>(MockBehavior.Strict); 220var owner = new Mock<IWin32Window>(MockBehavior.Strict);
System\Windows\Forms\Design\WindowsFormsComponentEditorTests.cs (4)
17var mockWindow = new Mock<IWin32Window>(MockBehavior.Strict); 24public void WindowsFormsComponentEditor_EditComponent_InvokeObjectIWin32Window_ReturnsFalse(Type[] pages, object component, IWin32Window owner) 60var mockWindow = new Mock<IWin32Window>(MockBehavior.Strict); 67public void WindowsFormsComponentEditor_EditComponent_InvokeITypeDescriptorContextObjectIWin32Window_ReturnsFalse(Type[] pages, ITypeDescriptorContext context, object component, IWin32Window owner)
System\Windows\Forms\DrawToolTipEventArgsTests.cs (7)
14yield return new object[] { new Mock<IWin32Window>(MockBehavior.Strict).Object, new Button(), new Rectangle(1, 2, 3, 4), "", Color.Red, Color.Blue, SystemFonts.DefaultFont }; 15yield return new object[] { new Mock<IWin32Window>(MockBehavior.Strict).Object, new Button(), new Rectangle(-1, -2, -3, -4), "toolTipText", Color.Red, Color.Blue, SystemFonts.DefaultFont }; 20public void Ctor_Graphics_IWin32Window_Control_Rectangle_String_Color_Color_Font(IWin32Window associatedWindow, Control associatedControl, Rectangle bounds, string toolTipText, Color backColor, Color foreColor, Font font) 45public void DrawBackground_Invoke_Success(IWin32Window associatedWindow, Control associatedControl, Rectangle bounds, string toolTipText, Color backColor, Color foreColor, Font font) 55public void DrawText_Invoke_Success(IWin32Window associatedWindow, Control associatedControl, Rectangle bounds, string toolTipText, Color backColor, Color foreColor, Font font) 65public void DrawText_InvokeTextFormatFlags_Success(IWin32Window associatedWindow, Control associatedControl, Rectangle bounds, string toolTipText, Color backColor, Color foreColor, Font font) 75public void DrawBorder_Invoke_Success(IWin32Window associatedWindow, Control associatedControl, Rectangle bounds, string toolTipText, Color backColor, Color foreColor, Font font)
System\Windows\Forms\ListViewItem.IKeyboardToolTipTests.cs (1)
647IWin32Window expectedOwner = null;
System\Windows\Forms\MdiControlStripTests.cs (1)
350public SubMdiControlStrip(IWin32Window target) : base(target)
System\Windows\Forms\MessageBoxTests.cs (1)
139IWin32Window owner,
System\Windows\Forms\PopupEventArgsTests.cs (1)
19public void Ctor_IWin32Window_Control_Bool_Size(IWin32Window associatedWindow, Control associatedControl, bool isBalloon, Size size)
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
425internal SubToolStripMenuItem(HMENU hmenu, int nativeMenuCommandId, IWin32Window targetWindow) : base(hmenu, nativeMenuCommandId, targetWindow)
System\Windows\Forms\ToolTipTests.cs (3)
730var mockWindow = new Mock<IWin32Window>(MockBehavior.Strict); 758var mockWindow = new Mock<IWin32Window>(MockBehavior.Strict); 774var mockWindow = new Mock<IWin32Window>(MockBehavior.Strict);
System\Windows\Forms\TreeNode.IKeyboardToolTipTests.cs (2)
318IWin32Window expectedOwner = null; 341IWin32Window expectedOwner = null;
System.Windows.Forms.TestUtilities (1)
DialogHostForm.cs (1)
13/// This class is typically passed as a parameter to a call to <see cref="CommonDialog.ShowDialog(IWin32Window?)"/>.
VisualBasicRuntimeTest (1)
Program.cs (1)
190public IWin32Window GetParentWindow() => null;