WinForm using an external browser to resolve WebBrowser issues

Source: Internet
Author: User

For a rookie of me, in the recent take over a project, make oneself also drunk, side also have no big god of the scene guidance, only rely on the degree Niang and Google's great help, otherwise such a small project can now also pay not, but in this process kind also really practical learning to a lot of things, I first say in WinForm the problem of embedding the browser in. in WinForm Embedded browser, in fact WinForm has its own control -----WebBrowser Control, For the use of this control, you can click WebBrowser to see the detailed introduction and use of methods, but I would like to say that using this control to pass parameters or use IP Access I would not, If you have a meeting, please tell the younger sister.

      So in the existing browser space can not be used, I found a package of browser engine, use this to solve I have to ip Access server also to pass parameters of the puzzle, let me say how to solve this problem. first in webkit.net official website Download webkit.net, then unzip it, unzip the file Bindebug folder, Next add the reference in the project, click Browse will bin folder webkitbrowser.dll file added to the reference, Use the following method

Webkit.webkitbrowser browser = new Webkitbrowser (); Browser. Dock = DockStyle.Fill; This. Controls.Add (browser); String url = "http://xxx.xxx.xx.xx:xxxx/xx/xx?xx=value1&xx=value2; Browser. Navigate (URL); Browser. AutoSize = true;

the above is my WinForm To solve the browser control method, if you have other solutions, you can also tell me Oh ~ ~

WinForm using an external browser to resolve WebBrowser issues

Related Article

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.