比如我派生了WebBrowser,怎么重载它的DocumentCompleted回调函数
解决方案 »
- 请教C#生成重启windows的程序写法
- 以一种访问权限不允许的方式做了一个访问套接字的尝试
- .net 操作Excel的问题
- 如何使用正则表达式??
- 如何将datatable里面的数据保存到数据库中已有的一张表中?
- 动态控件的事件的问题:如何对sender进行类型转换?
- System.Data.OracleClient中允许的最大变量名长度是多少?
- 问:如果我在一个触发的事件a中又触发了一个事件b,那么,这两个事件是不是同步执行的?还是要等b执行完后a 才能继续执行
- 一个属性根据另一个属性来操作,对象异步属性
- 推荐一个新的dotnet站点(Win Form)
- 如何获取控件对象所在的窗体的命名空间和类名?
- 请大家怎么监听一个文件夹里的内容那,
{
// Create a WebBrowser instance.
WebBrowser webBrowserForPrinting = new WebBrowser(); // Add an event handler that prints the document after it loads.
webBrowserForPrinting.DocumentCompleted +=
new WebBrowserDocumentCompletedEventHandler(PrintDocument); // Set the Url property to load the document.
webBrowserForPrinting.Url = new Uri(@"\\myshare\help.html");
}private void PrintDocument(object sender,
WebBrowserDocumentCompletedEventArgs e)
{
// Print the document now that it is fully loaded.
((WebBrowser)sender).Print(); // Dispose the WebBrowser now that the task is complete.
((WebBrowser)sender).Dispose();
}