Simple HTML editing control in winform-problem records in winhtmlcontrol win7

Source: Internet
Author: User

Winhtmlcontrol is found in the blog Park, address: http://www.cnblogs.com/wuhuacong/archive/2009/07/07/1518346.html

Run in WINXP and 2003 no problem, but put below win7 run will be unable to get the input focus of the problem, found the source of this control on codeproject (his guess, attached address: http://www.codeproject.com/Articles/15559/A-Windows-Forms-based-text-editor-with-HTML-output)

The specific solution is found in the reply:

Private void webbrowserappsdocumentcompleted (Object sender, webbrowserdocumentcompletedeventargs E)
{
If (webbrowser1.version. Major> = 9)
{
Webbrowser1.document. Write (webbrowser1.documenttext );
Doc. designMode = "on ";
}
}

In general, it is a special process for ie9 under win7. Please tell me why you know something about it.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.