Name
IWin32Window
Synopsis
This interface is implemented by classes that wrap a system window.
Most visual classes in the Windows Forms framework ultimately wrap a
Win32 window, and this interface is implemented by
Control to support that. It provides the
Handle property to retrieve the underlying HWND
for the window.
Note that not everything that is apparently a window is actually a window. For example, all the components of the Win32 ExplorerBar are actually rendered into a single Win32 window.
public interface IWin32Window { // Public Instance Properties public IntPtr Handle{get; } }
Implemented By
Control
Returned By
System.Windows.Forms.Design.IUIService.GetDialogOwnerWindow()
Passed To
CommonDialog.ShowDialog(),
System.Windows.Forms.Design.ComponentEditorForm.ShowForm(),
System.Windows.Forms.Design.IUIService.ShowComponentEditor(),
System.Windows.Forms.Design.WindowsFormsComponentEditor.EditComponent(), Form.ShowDialog(),
MessageBox.Show()
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access