資源簡介
sendUdpClient = new UdpClient(); // 啟動發送線程 Thread sendThread = new Thread(SendMessage); sendThread.Start(string.Format("talk,{0},{1},{2}", DateTime.Now.ToLongTimeString(), selfUserName, txbSend.Text)); richtxbTalkinfo.AppendText(selfUserName " " DateTime.Now.ToLongTimeString() Environment.NewLine txbSend.Text); richtxbTalkinfo.AppendText(Environment.NewLine); // 將控件內容滾動到當前插入符的位置 richtxbTalkinfo.ScrollToCaret(); txbSend.Text = ""; txbSend.Focus();
代碼片段和文件信息
///?
///?文件名稱:Form1.cs
///?簡要描述:本系統是一個C/S結構的客戶端端。
///???????????主要實現的功能是提供用戶在線聊天和注冊賬號;
///???????????還能提供用戶登陸信息和聊天記錄的動態查。???????
///?作者:????楊代亮
///?編寫日期:2009-06
///?
using?System;
using?System.Collections.Generic;
using?System.Collections;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Text;
using?System.Windows.Forms;
using?System.Net;
using?System.Net.Sockets;
using?System.Threading;
using?System.xml;
using?System.Security.Cryptography;
using?System.IO;
namespace?Client
{
????public?partial?class?Form1?:?Form
????{
????????public?Form1()
????????{
????????????InitializeComponent();
????????}
????????///?
????????///?全局變量g_username 記錄當前登陸賬號
????????///?
????????publ
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????25214??2009-06-05?07:31??Client\Client\10.ICO
?????文件??????25214??2003-02-17?00:26??Client\Client\3.ICO
?????文件??????32054??2002-01-25?16:26??Client\Client\Applications?HotSync.ico
?????文件??????32054??2002-01-25?16:26??Client\Client\Applications?MSN.ico
?????文件?????445440??2009-10-28?00:25??Client\Client\bin\Debug\Client.exe
?????文件??????73216??2009-10-28?00:25??Client\Client\bin\Debug\Client.pdb
?????文件??????14328??2009-10-27?23:30??Client\Client\bin\Debug\Client.vshost.exe
?????文件????????490??2007-07-21?01:33??Client\Client\bin\Debug\Client.vshost.exe.manifest
?????文件????????137??2009-06-08?16:53??Client\Client\bin\Debug\config.xm
?????文件????????242??2009-06-07?21:47??Client\Client\bin\Debug\logs\20090607.txt
?????文件???????3604??2009-06-08?22:52??Client\Client\bin\Debug\logs\20090608.txt
?????文件???????2310??2009-06-09?11:34??Client\Client\bin\Debug\logs\20090609.txt
?????文件????????162??2009-06-20?19:49??Client\Client\bin\Debug\logs\20090620.txt
?????文件?????275080??2006-07-14?15:16??Client\Client\bin\Debug\sound\init.wav
?????文件???????9220??1998-05-02?04:01??Client\Client\bin\Debug\sound\msg.wav
?????文件???????4825??1998-10-29?17:43??Client\Client\bin\Debug\sound\newuser.wav
?????文件???????7390??2009-05-22?14:59??Client\Client\bin\Debug\sound\shake.wav
?????文件???????4556??2009-09-29?00:00??Client\Client\Client.csproj
?????文件??????12386??2009-06-08?15:20??Client\Client\Form1.cs
?????文件???????6056??2009-06-08?07:28??Client\Client\Form1.Designer.cs
?????文件??????54200??2009-06-08?07:26??Client\Client\Form1.resx
?????文件??????10904??2009-10-28?00:25??Client\Client\Form2.cs
?????文件???????8767??2009-06-08?19:09??Client\Client\Form2.Designer.cs
?????文件?????248906??2009-06-08?19:09??Client\Client\Form2.resx
?????文件???????7962??2009-06-08?19:08??Client\Client\Form3.cs
?????文件???????5452??2009-06-07?17:24??Client\Client\Form3.Designer.cs
?????文件?????248906??2009-06-07?17:24??Client\Client\Form3.resx
?????文件??????13715??2009-06-09?11:32??Client\Client\Form4.cs
?????文件???????4739??2009-06-07?15:45??Client\Client\Form4.Designer.cs
?????文件??????54200??2009-06-07?15:45??Client\Client\Form4.resx
............此處省略76個文件信息
- 上一篇:修改IP和修改自動獲取IP的
- 下一篇:微信開發官網dome
評論
共有 條評論