Web browser in WinForms
I need to vie开发者_StackOverflow社区w 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.
精彩评论