且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Windows窗体中打开网页....?

更新时间:2023-12-06 15:44:10

您将需要某种webbrowser控件来呈现html.

一些选项是:
Webkit: http://sourceforge.net/projects/webkitdotnet/?_test=b [ ^ ]
GeckoFX: http://code.google.com/p/geckofx/ [ http://msdn.microsoft.com/en-us/library/2te2y1x6.aspx [^ ]

祝你好运!
You would need somekind of webbrowser control to render the html.

Some options are:
Webkit: http://sourceforge.net/projects/webkitdotnet/?_test=b[^]
GeckoFX: http://code.google.com/p/geckofx/[^]
IE: http://msdn.microsoft.com/en-us/library/2te2y1x6.aspx[^]

Good luck!


您在工具箱/通用控件中拥有WebBrowser控件.
只需将其放在表单上并使用以下命令显示html文件即可:

webBrowser1.Navigate(filename);
You have WebBrowser control in Toolbox/Common Controls.
Just put it on your form and display html file using:

webBrowser1.Navigate(filename);


在此控件的帮助下使用webbrowser控件,您可以
打开.html文件
use webbrowser control with the help of this control you can
open .html file