因为连接时,有些处理,断开时需要复原
解决方案 »
- 如何判断SQL2005里的图片是值是空的?
- treeview怎么判断单击发生在节点上
- 求VB常用算法大全
- 海啸冥思--中国人太善良了,善良的让我想哭
- 有什么方法可以实现对由image图片组合成的窗体进行换肤功能的实现???
- 本科四年没拿到毕业证,人生无前前途,4000分散贴,从此不再上网,去码头扛麻袋!
- VB skin++ MDI窗口禁止最大化、最小化按钮
- 运行中,如何用VB代码动态实现datagrid的列标题设定?
- 哪位好心人能告诉我API:sleep能精确到多少纳秒。(急急急)
- vb5中的Grid32.ocx和Threed32在vb6中不能用了,怎么办?
- 打包急救!
- VB安装程序的简单问题(在线等候)
procedure TFrmMCS.ServerSocket1ClientDisconnect(Sender: TObject;
Socket: TCustomWinSocket);
var
ClientConnectCount: integer;
con: integer;
begin
ClientConnectCount := ServerSocket1.Socket.ActiveConnections;
with RichEdit3 do
begin
SelAttributes.Color := clBlack;
RichEdit3.Refresh;
Lines.Add(Socket.RemoteHost +' is exist the Chating room');
end;
for con := 0 to ServerSocket1.Socket.ActiveConnections -1 do
if Socket = ServerSocket1.Socket.Connections[con] then
begin
ComboBox1.Items.Delete(con);
ClientConnectCount := ClientConnectCount -1;
end;
StaticText4.Caption := 'Total ' +inttostr(ClientConnectCount) +'Client(s) Connected Chat Server';
end;