HtmlWindow::WindowFrameElement Property
.NET Framework (current version)
Gets the frame element corresponding to this window.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Property Value
Type: System.Windows.Forms::HtmlElement^An HtmlElement corresponding to this window's FRAME element. If this window is not a frame, it returns null.
When you retrieve a FRAME element from the Frames collection, it returns an HtmlWindow. Call WindowFrameElement on this object if you need to access attributes of the underlying FRAME element, such as the SRC attribute.
UnauthorizedAccessException
You cannot access a FRAME elements or the FRAME's document if the FRAME is in a different zone than the FRAMESET that contains it. For a full explanation, see About Cross-Frame Scripting and Security.
.NET Framework
Available since 2.0
Available since 2.0
Show: