WebBrowser.Navigate(…) throws COMException

前端 未结 2 1787
长发绾君心
长发绾君心 2021-02-09 00:55

I\'m developing an Internet Explorer command button that will open a specific web page once clicked. Here\'s a snippet of code (IEApp is a reference to an instance

2条回答
  •  一生所求
    2021-02-09 01:05

    That's ERROR_BUSY usually happens when IE is doing something else, e.g. displaying a window.alert message box.
    Try suppress script errors and Implement IDocHostShowUI and return S_OK without blocking the message pump

提交回复
热议问题