简体   繁体   中英

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 对象未激活...

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")

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

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.

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