I looked at all the other answers to this question, and they did not work for me, but I saw one thing about the settings of Browser.Parent.Enabled = false; I tried it and got an error, so I tried it, but it occurred to me.
Browser.Parent = new Control();
Browser.Parent.Enabled = false;
And now the problem has completely disappeared, it no longer takes focus. I use the web browser class as a variable, this is not my form. well it worked for me, try it, it seems like a 100% solution.
source share