Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/297.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 需要有关使用WebBrowser的帮助吗_C#_Wpf_Internet Explorer_Browser - Fatal编程技术网

C# 需要有关使用WebBrowser的帮助吗

C# 需要有关使用WebBrowser的帮助吗,c#,wpf,internet-explorer,browser,C#,Wpf,Internet Explorer,Browser,我需要一些帮助。目前,我必须在点击位于FlowDocument中的超链接后打开internet explorer。 点击超链接是成功的,它引发了一个事件,我有导航URI没有问题 要在指定的URL打开internet explorer,我必须做什么? 我使用webBrowser.navigate,它要求一个导航URI,一个targetFrameName的字符串,一个不知道要放什么的postData字节网格,以及一个表示附加头的字符串 如果有人能帮我。。。那太好了!! 谢谢 Flo看看这个例子 此应

我需要一些帮助。目前,我必须在点击位于FlowDocument中的超链接后打开internet explorer。 点击超链接是成功的,它引发了一个事件,我有导航URI没有问题

要在指定的URL打开internet explorer,我必须做什么? 我使用webBrowser.navigate,它要求一个导航URI,一个targetFrameName的字符串,一个不知道要放什么的postData字节网格,以及一个表示附加头的字符串

如果有人能帮我。。。那太好了!! 谢谢

Flo

看看这个例子


此应用程序在点击指定的城市名称后显示来自Wikipedia的文章。这篇文章主要是关于treeview的,但它有一个web浏览器部分,您可能会感兴趣。

谢谢链接。我读过了,但作者没有解释如何处理超链接,他一直专注于树视图,不幸的是。。。顺便说一句,谢谢@弗洛:是的,但是你试过下载代码吗?查看文件Window1.xaml和Window1.xaml.cs,您需要几行代码。我设法在新的框架中显示了我的internet页面,但没有打开internet explorer。。。这不是我想要的,但这对我帮助很大!!!!!Thx@Flo也许您只需要:System.Diagnostics.Process p=System.Diagnostics.Process.Startiexplore.exe@http://bing.com;是的!就这样!!我只是找到了解决办法。我使用Process.Startsender作为Hyperlink.NavigateUri.ToString,它知道必须启动哪个软件才能打开文件!谢谢!