Blocking dialogs in .NET WebBrowser control

前端 未结 12 1269
执笔经年
执笔经年 2020-11-27 17:04

I have a .NET 2.0 WebBrowser control used to navigate some pages with no user interaction (don\'t ask...long story). Because of the user-less nature of thi

12条回答
  •  失恋的感觉
    2020-11-27 17:08

    You may have to customize some things, take a look at IDocHostUIHandler, and then check out some of the other related interfaces. You can have a fair amount of control, even to the point of customizing dialog display/ui (I can't recall which interface does this). I'm pretty sure you can do what you want, but it does require mucking around in the internals of MSHTML and being able to implement the various COM interfaces.

    Some other ideas: http://msdn.microsoft.com/en-us/library/aa770041.aspx

    IHostDialogHelper
    IDocHostShowUI
    

    These may be the things you're looking at implementing.

提交回复
热议问题