急,如何让COM调用.NET seeHOW TO: Handle Document Events in a Visual C# .NET Applicationhttp://support.microsoft.com/default.aspx?scid=kb;EN-US;312777 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 COM与.NET的互操作(初级)http://dev.csdn.net/develop/article/25/25265.shtm从COM组件调用.NET组件编程实战http://dev.csdn.net/develop/article/23/23438.shtm如何创建COM组件能够调用的.NET装配件http://dev.csdn.net/develop/article/21/21259.shtm当COM遇见.NET http://dev.csdn.net/develop/article/16/16684.shtmmore:http://www.csdn.net/Develop/List_Article.asp?KeysWord=com&myclassid=&author=&BigClassId=14&myclassName=&doctype=&whichpage=1 谢谢大家的热心解答 刚刚错过了upto(阿球) 的回复,抱歉 //需要将system32目录下的mshtml.tlb添加到项目中 private void button1_Click(object sender, System.EventArgs e) { mshtml.IHTMLDocument2 doc = wb.Document as mshtml.IHTMLDocument2; doc.write("<html><body><button id=btn>test</button></body></html>"); mshtml.HTMLButtonElementEvents_Event btn = doc.all.item("btn", (object)0) as mshtml.HTMLButtonElementEvents_Event; btn.onclick += new mshtml.HTMLButtonElementEvents_onclickEventHandler(html_button_onclick); } private bool html_button_onclick() { MessageBox.Show("hello"); return true; } 动态构造列,用dev gridcontrol绑定后,控件数据显示不出来 C#实现列行合并代码,求高手帮忙。 救命啊 请高手帮我看看为什么我在相对路径上无法读到文件 委托问题 请教用C#调用非托管DLL函数,老提示“无法加裁” 能否通过代码拷贝数据库中的表 关于把“法语”写入.txt文件出现乱码的问题 有什么办法可以把一个有内容的DataRow插入到一个表里面去? 如何存储Bitmap对象到DataSet里 vsto开发问题,找不到程序集 怎样在C#中使用MFC 有没有办法可以读取某某网站上的新闻,并将其保存到本地啊。
http://dev.csdn.net/develop/article/25/25265.shtm从COM组件调用.NET组件编程实战
http://dev.csdn.net/develop/article/23/23438.shtm如何创建COM组件能够调用的.NET装配件
http://dev.csdn.net/develop/article/21/21259.shtm当COM遇见.NET
http://dev.csdn.net/develop/article/16/16684.shtm
more:
http://www.csdn.net/Develop/List_Article.asp?KeysWord=com&myclassid=&author=&BigClassId=14&myclassName=&doctype=&whichpage=1
{
mshtml.IHTMLDocument2 doc = wb.Document as mshtml.IHTMLDocument2;
doc.write("<html><body><button id=btn>test</button></body></html>");
mshtml.HTMLButtonElementEvents_Event btn = doc.all.item("btn", (object)0) as mshtml.HTMLButtonElementEvents_Event;
btn.onclick += new mshtml.HTMLButtonElementEvents_onclickEventHandler(html_button_onclick);
} private bool html_button_onclick()
{
MessageBox.Show("hello");
return true;
}