Aleksander Azizi
Aleksander Azizi

Reputation: 9877

VS 2010 Silverlight Application 4 (VB or C#) - How do i use the webbrowser?

I need some help with the WebBrowser object in VS (C# or VB) (Silverlight Application 4). My problem is that the WebBrowser object only shows this: -

WebBrowser object not active...

How do i make it work/remove that text ? All i want to do is this:

C# :
MainWebBrowser.Navigate(new Uri("URL HERE"));
VB :
MainWebBrowser.Navigate("URL HERE")

Upvotes: 0

Views: 261

Answers (2)

Jimmy
Jimmy

Reputation: 28406

As the error message indicates, the WebBrowser control doesn't work when Silverlight is hosted in a browser. In order to use the control, you need to be running your app outside of the browser.

Upvotes: 1

Jonathan Kaufman
Jonathan Kaufman

Reputation: 314

You should take a look at this: http://silverlight-outofbrowser.com/

Upvotes: 1

Related Questions