帮我使用webBrowser控件 [英] Help me use webBrowser control

查看:64
本文介绍了帮我使用webBrowser控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个name.hmt文件,包括HTML和CSS.
我想在我的应用程序上显示它.
我将name.htm文件放在应用程序的Debug文件夹和以下代码中:

I have a name.hmt file include Html and css.
I want to display it on my application.
I put name.htm file in Debug folder of application and code below:

webBrowser1.Navigate(@"name.hmt");


但是不会显示webBrowser1.


But webBrowser1 is not display.
Please help me, thanks!

推荐答案

WebBrowser控件非常先进,没有简单的方法来解释它的工作原理.我建议您在WebBrowser上进行一些阅读...在Google上可以找到很多资源.
Web浏览器类 [在C#应用程序中使用Web浏览器控件 [使用C#的Web浏览器 [
The WebBrowser Control is pretty advanced and there is no easy way to explain how this works. I suggest you do some reading up on the WebBrowser... There are plenty of resources to be found on Google.
WebBrowser Class[^]
Using the Web Browser Control in your C# Applications[^]
Web Browser in C#[^]
I am sure you can Google up some more.
And perhaps your .hmt file is just wrong. No way of knowing for us.
Hope it helps.


这篇关于帮我使用webBrowser控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆