RegisterAsBrowser = True的意义

length0916 2006-10-05 02:36:45
我发现在很多用VB.NET写的NewWindow事件当中都会有这一句,请教一下大家这句话到底有什么含义。他能用在什么样的场合。
...全文
635 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
TechnoFantasy 2006-10-05
  • 打赏
  • 举报
回复
The architecture of Microsoft Internet Explorer allows for multiple instances of the IWebBrowser2 object. For example, a web page with frames may contain a IWebBrowser2 object for each frame window.

The term "top-level" refers to the IWebBrowser2 object that is the parent of all other IWebBrowser2 objects.

Setting this property to True enables the top-level IWebBrowser2 object to participate in frame name resolution. If the user clicks on a hyperlink that specifies a target attribute which is not in the current window, Internet Explorer will search all IWebBrowser2 objects that are registered when attempting to resolve the target name.

鋒子 2006-10-05
  • 打赏
  • 举报
回复
RegisterAsBrowser 属性设置为 TRUE 对新建 WebBrowser 控件为了它参与窗口名称解析。 例如, 如果脚本, 中其他地方使用此窗口名称然后该控件将使用代替新建一个因为打开新窗口之前检查所有现有窗口名称。

引用<<如何使用 WebBrowser 控件 NewWindow2 事件>>

http://support.microsoft.com/kb/184876/

16,555

社区成员

发帖
与我相关
我的任务
社区描述
VB技术相关讨论,主要为经典vb,即VB6.0
社区管理员
  • VB.NET
  • 水哥阿乐
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧