Member 11840670 Ответов: 1

Пользовательские формы windows webbrowser выпускает .NET


Created a Custom Windows Forms WebBrowser to be opened a fixed url and search bar is disabled as per requirement. When user traversing next page (clicking next button available on the web page) there are few links which are opened in new window. And they are invoking default Internet explorer with search bar option. Can I disable the page to be opened or grey out the content having such links on the basis of next page url. Or if there any option to get the link opened in same window. Please advise.


Что я уже пробовал:

Цитата:
Created a Custom Windows Forms WebBrowser to be opened a fixed url and search bar is disabled as per requirement. When user traversing next page (clicking next button available on the web page) there are few links which are opened in new window. And they are invoking default Internet explorer with search bar option. Can I disable the page to be opened or grey out the content having such links on the basis of next page url. Or if there any option to get the link opened in same window. Please advise.

Richard Deeming

Репост
Вы уже опубликовали это на форуме .NET Framework:
https://www.codeproject.com/Messages/5581756/Custom-Windows-Forms-WebBrowser-issues-Net.aspx[^]

1 Ответов

Рейтинг:
0

#realJSOP

Моя первая догадка состояла бы в том, чтобы захватить BrowseTo событие (если оно существует), и съесть его, установив IsHandled (если я правильно помню) чтобы true.