Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I display an HTML document in "htmlEditUserControl? #3

Open
it19862 opened this issue May 15, 2018 · 0 comments
Open

How do I display an HTML document in "htmlEditUserControl? #3

it19862 opened this issue May 15, 2018 · 0 comments

Comments

@it19862
Copy link

it19862 commented May 15, 2018

How to use "ZetaHtmlEditControl"?
If I understand the documentation correctly, then I need to place "htmlEditUserControl2" on "WinForm".
Or did I misunderstand?

"htmlEditUserControl2.DocumentText = @" ";" does not work

`using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;


// 
using ZetaHtmlEditControl;

namespace rsh
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            string text1;

            text1 = @"<body>
            <a href=""http://cmstexst1:81/Page_2"">Ссылка на страницу Page_2</a><br>
                    		<p>page1 paragraph 1</p>
                    		<a href=""NamePage2#Page2_Paragraph_2"">Page2Prgrph_2</a><br>	
                        <p>text</p>
                    		<p>page1 paragraph 2</p>
                    		<a href=""NamePage2#Page2_Paragraph_3"">Page2Prgrph_3</a><br>
                    		<p>text</p>
                    		<p>page1 paragraph 3</p>
                    		<p>text</p>
                           <div class=""spoiler"">
                         <input type=""checkbox"" >
                         <div class=""box"">
                               Текст сообщения в спойлере.
                         </div>
                    </div>";

            extendedWebBrowser1.DocumentText = text1;

            // htmlEditUserControl2.se

            htmlEditUserControl2.DocumentText = @"";

            // extendedWebBrowser1.DocumentText = @"";

        }
    }
}

4015
4016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant