HtmlWindow::ResizeTo Method (Size)

 

Changes the size of the window to the specified dimensions.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public:
void ResizeTo(
	Size size
)

Parameters

size
Type: System.Drawing::Size

A Size describing the desired width and height of the window, in pixels. Must be 100 pixels or more in both dimensions.

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.

The following code example opens a new window, and resizes it to fill the available screen area.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: