最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

c# - Several WebBrowser in Window Form and lots of blinking cursors - Stack Overflow

programmeradmin5浏览0评论

The problem comes down to a simple explanation. There are several WebBrowse in the form (Windows Form). When switching the cursor from one browser to another, a blinking cursor remains in the browser. The easiest code to reproduce:

private static string html = @"<HTML><BODY contentEditable='true'/></HTML>";
        public Form1()
        {
            InitializeComponent();
            webBrowser1.DocumentText = html;
            webBrowser2.DocumentText = html;
            webBrowser3.DocumentText = html;
            webBrowser4.DocumentText = html;
        }

Click the mouse in the browser 1,2,3,4. In all four the blinking cursor will remain.

When switching back and forth repeatedly, the cursors disappear. Or if you switch from the browser to TextBox, there is no problem either. This behavior is a big hindrance in my large project. Please help me.

I want that when I sequentially enter text in browsers 1,2,3,4, - there would be no blinking cursors.

发布评论

评论列表(0)

  1. 暂无评论