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

The problem comes down to a simple explanation.There are several WebBrowse in the form (Windows Form).

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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744251763a4565202.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信