· Wason (zhuhai)
本次只用一个实例,来说明在C#中如何使用自定义事件。
写一个类,此类包含了自定义事件: onSendMsg。
文件名:ChatServer.cs
public class ChatServer
{
public delegate void MyEventHandler(string msg);
public event MyEventHandler onSendMsg;
public void Sen...
· PocketSOAP
This is a SOAP client COM component for the Windows family, originally targeted at PocketPC (hence the name), there is also a Win32 version that works on Windows 95/98/Me/NT4/2000/XP. The package includes a HTTP transport for making HTTP based SOAP requests, howeve...
· IntroductionFirst of all, let me tell you that I am not a C# expert. I am primarily a Java developer but have been experimenting C# and the .NET platform. Basically I am developing a SOAP Web Service using Java and Apache SOAP, and have decided to give my clients an option wh...
· 程序中图片是动态显示的原先把打算把图片保存在服务器端然后显示可是由于ie的缓存问题导致图片无法实时更新显示所以改为把图片存在session中然后再显示需要保存的时候再保存到本地//--------------chart.ashx.cs-------------------using System;
using System.W...
· 我对这个类不是很满意,如果你有改进意见请联系我,不胜感激.主要将对数据库的操作简单封装了一下using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Configuration;
using System.Data.SqlClient;namespace Addr.Ad...
· Module ModSqlFunction GetIntByStr(ByVal FieldName As String, ByVal TableName As String, ByVal ParaName As String, ByVal ParaValue As String) As IntegerDim sqlConnection As New SqlClient.SqlConnection(GetConn)Dim queryString As String = "select Top 1 " & FieldNam...