摘要: (一)Control的Invoke和BeginInvoke我们要基于以下认识:(1)Control的Invoke和BeginInvoke与Delegate的Invoke和BeginInvoke是不同的。(2)Control的Invoke和BeginInvoke的参数为delegate,委托的方法是在Control的线程上执行的,也就是我们平时所说的UI线程。我们以代码(一)来看(Control的Invoke)private delegatevoid InvokeDelegate();private voidInvokeMethod(){ //C代码段}private voidbutInvoke 阅读全文
posted @ 2011-08-23 23:49 方向! 阅读(288) 评论(0) 推荐(0)
摘要: using System;using System.Reflection;using System.Web;using System.IO;public class site3 : IHttpHandler { public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/html"; int x = 0; int y = 0; int z = 0; System.Collections.Generic.Dictionary<string, string&g 阅读全文
posted @ 2011-07-24 02:53 方向! 阅读(427) 评论(0) 推荐(0)