Relative Content

Tag Archive for c#winformswebbrowser-controltextselection

Unexpected behavior when selecting text in C# WinForms WebBrowser

I created a WinForms application using .NET Framework 4.5.2. When I select certain text in the WebBrowser control and change the active window, the selection does not turn gray, but simply disappears. When I click back into the application window, the selection appears for a few milliseconds and then disappears. However, if I select text, change the active window, and then press any in the document, the selection appears again.