HtmlWindow::Position Property
.NET Framework (current version)
Gets the position of the window's client area on the screen.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
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.
.NET Framework
Available since 2.0
Available since 2.0
Show: