2004年8月26日

Create a Custom ProgressBar Control

摘要: The ProgressBar control that is included with Visual C# .NET supports only the standard setting.The sample code in this article illustrates how to create a control that supports the following properti... 阅读全文

posted @ 2004-08-26 16:15 停留.Xp 阅读(1058) 评论(0) 推荐(0) 编辑

于多线程的超时终止代码

摘要: usingSystem;usingSystem.Threading;publicdelegatevoidEventOverHandler(intx);publicclassThreadTimeOut{protectedThreadthreadObj;protectedinttimeOut;publicThreadThreadObj{set{threadObj=value;}get{returnth... 阅读全文

posted @ 2004-08-26 11:45 停留.Xp 阅读(1179) 评论(0) 推荐(0) 编辑

Safe, Simple Multithreading in Windows Forms, Part 1

摘要: Safe, Simple Multithreading in Windows Forms, Part 1Chris SellsJune 28, 2002Download the AsynchCalcPi.exe sample.It all started innocently enough. I found myself needing to calculate the area of a cir... 阅读全文

posted @ 2004-08-26 11:02 停留.Xp 阅读(878) 评论(0) 推荐(0) 编辑

socket编程

摘要: 下面的示例程序创建一个接收来自客户端的连接请求的服务器。该服务器是用异步套接字生成的,因此在等待来自客户端的连接时不挂起服务器应用程序的执行。该应用程序接收来自客户端的字符串,在控制台显示该字符串,然后将该字符串回显到客户端。来自客户端的字符串必须包含字符串“<EOF>”,以发出表示消息结尾的信号。[VisualBasic]ImportsSystemImport... 阅读全文

posted @ 2004-08-26 10:48 停留.Xp 阅读(1241) 评论(0) 推荐(0) 编辑

多线程学习

摘要: David CarmonaPremier Support for DevelopersMicrosoft SpainJune 2002Summary: Provides an in-depth look at the thread pool support in the Microsoft .NET Framework, shows why you need a pool and the impl... 阅读全文

posted @ 2004-08-26 10:44 停留.Xp 阅读(1450) 评论(0) 推荐(0) 编辑

今天去火车站送女朋友了

摘要: 今天天气很不错,本来不应该去送女朋友。但是我总是感觉不去送会后悔,或许自己有强迫症。6:30就起床了,然后打车去女朋友家。收拾好行李,匆忙地就去了火车站。这是第一次去送女朋友,我知道,以后有很多次。很多次昨天看了仔细看了一下delegate,感觉非常不错也:),这里提供一个简单例子:此处介绍的示例是建立在事件和委托和引发事件中讨论的多个部分的基础上的。本示例显示了如何从您的类引发事件以及如何处理事... 阅读全文

posted @ 2004-08-26 09:03 停留.Xp 阅读(1585) 评论(0) 推荐(0) 编辑

导航