Windows Forms WebBrowser: CTRL+F Search doesn't find anything

55 Views Asked by At

In our C# application, we have a form that pops up with a System.Windows.Forms.WebBrowser control. When I click into the WebBrowser control and press CTRL+F, a search box opens.

But when I type something into the searchbox and press ENTER, nothing is being found.

How can I get search to work?

1

There are 1 best solutions below

0
Node defender On

I understand what you mean, you mean to use a search engine in Webbrowser, but the page jumps into blank. If my understanding is wrong, please let me know.

You can use the following code before loading webbrowser:

webBrowser1.ScriptErrorsSuppressed = true;

In addition, if the above code does not work, let me know.

There is also a spare scheme that you can use Cefsharp.winForms, just search in Nuget