HtmlWindow.ResizeTo Method (Int32, Int32)

 

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(
	int width,
	int height
)

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
Return to top
Show: