简体   繁体   中英

Web browser in WinForms

I need to view a web page inside my application (developed using C# with Visual Studio 2010 and .NET 4.0), so I need to create a simple like browser. This browser can pass a value to system. I have tried CefSharp and webkit with no luck - I cannot load the assembly into Visual Studio.

How can I solve this problem?

Thanks.

If this is WinForms, you should consider using the WebBrowser Class which embeds Internet Explorer as a user control.

WPF also has a similar webbrowser control defined like this:

<WebBrowser x:Name="wbMain" Margin="30">
</WebBrowser>

Many scenarios are already covered in the .Net framework, and it's easier to use what comes with the framework before trying other things. That said, there are scenarios where you might want to use something other than the IE webbrowser control, but try the easy way first.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM