public Form1() { InitializeComponent(); //1. create viewport easeViewport = EaseHost.CreateViewportControl(this, 800, 600); //2. add physical html control to target that you want //eg. this example add physical html control viewport to the panel1 this.panel1.Controls.Add(easeViewport.PhysicalViewportControl); //3. notify when form load this.Load += new EventHandler(Form1_Load); //4. create html output console this.myWbConsole = new MyWebConsole(this.textBox1); }
public Form1() { InitializeComponent(); //1. create viewport easeViewport = EaseHost.CreateViewportControl(this, 800, 600); //2. add this.panel1.Controls.Add(easeViewport.ViewportControl); //this.Controls.Add(easeViewport.ViewportControl); this.Load += new EventHandler(Form1_Load); this.myWbConsole = new MyWebConsole(this.textBox1); }