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