在C#窗口中嵌入网页 [英] Embedding a Web page in a C# Window
本文介绍了在C#窗口中嵌入网页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想创建一个简单的C#窗口来显示网页的内容.这可能吗?
I want to create a simple C# Window which displays the contents of a webpage. Is this possible ?
例如. (我想做的是)
Eg. (what I am trying to do is)
csharp.window.loadUrl("http://www.google.com")
csharp.window.loadUrl("http://www.google.com")
推荐答案
您可以简单地在WebBrowser控件中执行此操作.并使用Navigate(string url)方法浏览网站.在这里查看详细信息
You can simply do this in a WebBrowser control. And use Navigate(string url) method to browse to a website. have a look Here for Details
http://msdn.microsoft.com/en-us/library/3s8ys666.aspx
这是WebBrowser类的详细信息
and here is the details for the WebBrowser Class
http://msdn.microsoft.com/zh-cn/library/system.windows.forms.webbrowser.aspx
这篇关于在C#窗口中嵌入网页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文