HtmlWindow::ResizeTo Method (Int32, Int32)
.NET Framework (current version)
Changes the size of the window to the specified dimensions.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- width
-
Type:
System::Int32
Describes the desired width of the window, in pixels. Must be 100 pixels or more.
- height
-
Type:
System::Int32
Describes the desired height of the window, in pixels. Must be 100 pixels or more.
| Exception | Condition |
|---|---|
| UnauthorizedAccessException | The window you are trying to resize is in a different domain than its parent window. This restriction is part of cross-frame scripting security; for more information, see About Cross-Frame Scripting and Security. |
.NET Framework
Available since 2.0
Available since 2.0
Show: