开发者

Cannot find WebBrowser.NavigateToString() method

开发者 https://www.devze.com 2023-01-17 15:11 出处:网络
I\'ve heard nice stuff about the NavigateToString() C# method, b开发者_开发知识库ut i can\'t seem to be able to use it =(

I've heard nice stuff about the NavigateToString() C# method, b开发者_开发知识库ut i can't seem to be able to use it =( I have a System.Windows.Forms.WebBrowser in a panel, and when i try to call NavigateToString() it says:

"Error: 'System.Windows.Forms.WebBrowser' does not contain a definition for 'NavigateToString' and no extension method 'NavigateToString' accepting a first argument of type 'System.Windows.Forms.WebBrowser' could be found (are you missing a using directive or an assembly reference?)

C:\Users\Name\documents\visual studio 2010\Projects\TestPHPNavigateToString\TestPHPNavigateToString\Form1.cs TestPHPNavigateToString"

I didn't find anyone with the same issue oO, is there a particular dll i should add a reference to?.

I have vs2010 with .Net FrameWork 4.0, i just reinstalled it just to be sure, but it feels like I'm missing something here =o

Thanks.


The method NavigateToString is available on System.Windows.Controls.WebBrowser and not System.Windows.Forms.WebBrowser


http://msdn.microsoft.com/en-us/library/system.windows.controls.webbrowser.navigatetostring.aspx

-> PresentationFramework (in PresentationFramework.dll)

Do you have this reference?

0

精彩评论

暂无评论...
验证码 换一张
取 消