To steeven:我在我的系统上重复了你的步骤,不过我没有重现你所说的问题。我在我的WinForm上访了一个AxWebBrowser控件以及两个按钮,通过这两个按钮来清空和写入webBrowser里面的document:private void button1_Click(object sender, System.EventArgs e)
{
object url="about:blank";
object nothing=System.Reflection.Missing.Value;
this.axWebBrowser1.Navigate2(ref url,ref nothing,ref nothing,ref nothing,ref nothing);
}private void button4_Click(object sender, System.EventArgs e)
{
((mshtml.IHTMLDocument2)this.axWebBrowser1.Document).write("<html><body>aaaa</body></html>");
}在这段程序里面,按button4可以插入内容,按button1可以清空内容。建议您再尝试一下,如果错误仍然存在,那么需要看一下错误是否由其他部分的代码引起。Hogwarts - S(u)ddenly dis@ppeared...
-
本贴子以“现状”提供且没有任何担保,同时也没有授予任何权利。具体事项可参见使用条款(http://support.microsoft.com/directory/worldwide/zh-cn/community/terms_chs.asp)。
{
object url="about:blank";
object nothing=System.Reflection.Missing.Value;
this.axWebBrowser1.Navigate2(ref url,ref nothing,ref nothing,ref nothing,ref nothing);
}private void button4_Click(object sender, System.EventArgs e)
{
((mshtml.IHTMLDocument2)this.axWebBrowser1.Document).write("<html><body>aaaa</body></html>");
}在这段程序里面,按button4可以插入内容,按button1可以清空内容。建议您再尝试一下,如果错误仍然存在,那么需要看一下错误是否由其他部分的代码引起。Hogwarts - S(u)ddenly dis@ppeared...
-
本贴子以“现状”提供且没有任何担保,同时也没有授予任何权利。具体事项可参见使用条款(http://support.microsoft.com/directory/worldwide/zh-cn/community/terms_chs.asp)。
解决方案 »
- 怎么获取http post 方式传过来的数据
- 我通过设置HeaderCell给dataGridView加序号,但是当点击表头,执行默认排序方法时,表头都空了,该怎么解决
- asp.net中调用word
- C# 编程如何往数据库载入数据????????
- textBox和keypress
- 关于Grid设置多关键字的问题,集聚解决方法??
- .net里产生一个Guid的快捷键是什么?
- 找不到类型或命名空间名称“system”(是否缺少 using 指令或程序集引用?)
- 为什么无法取得DataGrid中手动增加或改变的内容
- 前辈救急,服务器启动不了
- 专家还把这个源码讲错, 大家都来看看个个源代码!!
- 用.net 做的主页能在没有安装FRAMEWORK的机子上运行吗?
谢谢先, 我试试看