HtmlWindow::Position Property

 

Gets the position of the window's client area on the screen.

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

public:
property Point Position {
	Point get();
}

Property Value

Type: System.Drawing::Point

A Point describing the x -and y-coordinates of the top-left corner of the screen, in pixels.

The Location property of the WebBrowser control will return the position of the control relative to the upper-left corner of the form. By contrast, Position will return the location of the document's display area relative to the top-left corner of the user's monitor.

The following code example opens a new window directly over the WebBrowser control on the form. The code example requires that your form contains an instance of the WebBrowser control named WebBrowser1.

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

.NET Framework
Available since 2.0
Return to top
Show: