Mubi
Mubi

Reputation: 21

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.

Upvotes: 0

Views: 5335

Answers (1)

Mikael Svenson
Mikael Svenson

Reputation: 39695

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.

Upvotes: 6

Related Questions