亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? chatclient.cs

?? 基于SOCKET的聊天室
?? CS
?? 第 1 頁 / 共 2 頁
字號:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Net;
using System.Net.Sockets;
using System.Threading;


namespace ChatClient
{
	public class ChatClientForm : System.Windows.Forms.Form
	{
		private System.Windows.Forms.Button btnSend;
		private System.Windows.Forms.ListBox lstUsers;
		private System.Windows.Forms.Label label2;
		/// <summary>
		/// 必需的設計器變量。
		/// </summary>
		private System.ComponentModel.Container components = null;

		private System.Windows.Forms.GroupBox groupBox1;
		private System.Windows.Forms.TextBox txtHost;
		private System.Windows.Forms.Label label5;
		private System.Windows.Forms.TextBox txtPort;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.Button btnLogin;
		private System.Windows.Forms.Button btnExit;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.TextBox tbSendContent;
		private System.Windows.Forms.RichTextBox rtbMsg;
		private System.Windows.Forms.Button btnColor;
		
		
		//與服務器的連接
		TcpClient tcpClient;
	
		//與服務器數據交互的流通道
		private NetworkStream Stream;


		//客戶端的狀態
		private static string CLOSED = "closed";
		private static string CONNECTED = "connected";
		private System.Windows.Forms.TextBox tbUserName;
		private System.Windows.Forms.CheckBox cbPrivate;
		private string state = CLOSED;

		private bool stopFlag;

		private Color color;

		public ChatClientForm()
		{
			//
			// Windows 窗體設計器支持所必需的
			//
			InitializeComponent();

			//
			// TODO: 在 InitializeComponent 調用后添加任何構造函數代碼
			//
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if (components != null) 
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.tbSendContent = new System.Windows.Forms.TextBox();
			this.btnSend = new System.Windows.Forms.Button();
			this.lstUsers = new System.Windows.Forms.ListBox();
			this.cbPrivate = new System.Windows.Forms.CheckBox();
			this.label2 = new System.Windows.Forms.Label();
			this.groupBox1 = new System.Windows.Forms.GroupBox();
			this.btnExit = new System.Windows.Forms.Button();
			this.btnLogin = new System.Windows.Forms.Button();
			this.tbUserName = new System.Windows.Forms.TextBox();
			this.label3 = new System.Windows.Forms.Label();
			this.txtPort = new System.Windows.Forms.TextBox();
			this.label4 = new System.Windows.Forms.Label();
			this.txtHost = new System.Windows.Forms.TextBox();
			this.label5 = new System.Windows.Forms.Label();
			this.label1 = new System.Windows.Forms.Label();
			this.rtbMsg = new System.Windows.Forms.RichTextBox();
			this.btnColor = new System.Windows.Forms.Button();
			this.groupBox1.SuspendLayout();
			this.SuspendLayout();
			// 
			// tbSendContent
			// 
			this.tbSendContent.Location = new System.Drawing.Point(280, 448);
			this.tbSendContent.Multiline = true;
			this.tbSendContent.Name = "tbSendContent";
			this.tbSendContent.Size = new System.Drawing.Size(472, 112);
			this.tbSendContent.TabIndex = 0;
			this.tbSendContent.Text = "";
			// 
			// btnSend
			// 
			this.btnSend.Location = new System.Drawing.Point(760, 448);
			this.btnSend.Name = "btnSend";
			this.btnSend.TabIndex = 1;
			this.btnSend.Text = "發送(&A)";
			this.btnSend.Click += new System.EventHandler(this.btnSend_Click);
			// 
			// lstUsers
			// 
			this.lstUsers.Location = new System.Drawing.Point(16, 112);
			this.lstUsers.Name = "lstUsers";
			this.lstUsers.ScrollAlwaysVisible = true;
			this.lstUsers.Size = new System.Drawing.Size(248, 459);
			this.lstUsers.TabIndex = 2;
			// 
			// cbPrivate
			// 
			this.cbPrivate.Location = new System.Drawing.Point(280, 408);
			this.cbPrivate.Name = "cbPrivate";
			this.cbPrivate.Size = new System.Drawing.Size(87, 22);
			this.cbPrivate.TabIndex = 7;
			this.cbPrivate.Text = "悄悄話";
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(16, 88);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(120, 21);
			this.label2.TabIndex = 9;
			this.label2.Text = "當前在線用戶列表:";
			this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// groupBox1
			// 
			this.groupBox1.Controls.Add(this.btnExit);
			this.groupBox1.Controls.Add(this.btnLogin);
			this.groupBox1.Controls.Add(this.tbUserName);
			this.groupBox1.Controls.Add(this.label3);
			this.groupBox1.Controls.Add(this.txtPort);
			this.groupBox1.Controls.Add(this.label4);
			this.groupBox1.Controls.Add(this.txtHost);
			this.groupBox1.Controls.Add(this.label5);
			this.groupBox1.Location = new System.Drawing.Point(16, 8);
			this.groupBox1.Name = "groupBox1";
			this.groupBox1.Size = new System.Drawing.Size(816, 72);
			this.groupBox1.TabIndex = 21;
			this.groupBox1.TabStop = false;
			this.groupBox1.Text = "聊天服務器設置";
			// 
			// btnExit
			// 
			this.btnExit.Location = new System.Drawing.Point(712, 32);
			this.btnExit.Name = "btnExit";
			this.btnExit.Size = new System.Drawing.Size(62, 22);
			this.btnExit.TabIndex = 25;
			this.btnExit.Text = "離開";
			this.btnExit.Click += new System.EventHandler(this.btnExit_Click_1);
			// 
			// btnLogin
			// 
			this.btnLogin.DialogResult = System.Windows.Forms.DialogResult.OK;
			this.btnLogin.Location = new System.Drawing.Point(640, 32);
			this.btnLogin.Name = "btnLogin";
			this.btnLogin.Size = new System.Drawing.Size(62, 21);
			this.btnLogin.TabIndex = 24;
			this.btnLogin.Text = "登入";
			this.btnLogin.Click += new System.EventHandler(this.btnLogin_Click);
			// 
			// tbUserName
			// 
			this.tbUserName.Location = new System.Drawing.Point(448, 32);
			this.tbUserName.Name = "tbUserName";
			this.tbUserName.Size = new System.Drawing.Size(84, 20);
			this.tbUserName.TabIndex = 22;
			this.tbUserName.Text = "";
			// 
			// label3
			// 
			this.label3.Location = new System.Drawing.Point(368, 32);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(83, 21);
			this.label3.TabIndex = 23;
			this.label3.Text = "用戶名:";
			this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// txtPort
			// 
			this.txtPort.Location = new System.Drawing.Point(296, 32);
			this.txtPort.Name = "txtPort";
			this.txtPort.Size = new System.Drawing.Size(46, 20);
			this.txtPort.TabIndex = 21;
			this.txtPort.Text = "1234";
			// 
			// label4
			// 
			this.label4.Location = new System.Drawing.Point(216, 32);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(72, 22);
			this.label4.TabIndex = 20;
			this.label4.Text = "端口號:";
			this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// txtHost
			// 
			this.txtHost.Location = new System.Drawing.Point(96, 32);
			this.txtHost.Name = "txtHost";
			this.txtHost.Size = new System.Drawing.Size(104, 20);
			this.txtHost.TabIndex = 19;
			this.txtHost.Text = "127.0.0.1";
			// 
			// label5
			// 
			this.label5.Location = new System.Drawing.Point(16, 32);
			this.label5.Name = "label5";
			this.label5.Size = new System.Drawing.Size(83, 22);
			this.label5.TabIndex = 18;
			this.label5.Text = "服務器地址:";
			this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(280, 88);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(72, 21);
			this.label1.TabIndex = 22;
			this.label1.Text = "系統消息:";
			this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// rtbMsg
			// 
			this.rtbMsg.Location = new System.Drawing.Point(280, 112);
			this.rtbMsg.Name = "rtbMsg";
			this.rtbMsg.Size = new System.Drawing.Size(552, 288);
			this.rtbMsg.TabIndex = 25;
			this.rtbMsg.Text = "";
			// 
			// btnColor
			// 
			this.btnColor.Location = new System.Drawing.Point(760, 488);
			this.btnColor.Name = "btnColor";
			this.btnColor.TabIndex = 28;
			this.btnColor.Text = "顏色";
			this.btnColor.Click += new System.EventHandler(this.btnColor_Click);
			// 
			// ChatClientForm
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(848, 589);
			this.Controls.Add(this.btnColor);
			this.Controls.Add(this.rtbMsg);
			this.Controls.Add(this.label1);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩欧美精品在线| 日本一区中文字幕| 人人狠狠综合久久亚洲| 高清视频一区二区| 欧美精品免费视频| 亚洲欧洲国产日韩| 国产一区二区视频在线| 欧美高清视频www夜色资源网| 欧美激情中文字幕| 九九国产精品视频| 欧美调教femdomvk| 国产精品入口麻豆原神| 久久不见久久见免费视频7| 欧美视频一区二区三区| 国产精品不卡在线| 不卡一卡二卡三乱码免费网站| 欧美一区二区在线免费观看| 一区二区三区中文字幕精品精品| 国产成人精品影视| 日韩欧美久久久| 肉丝袜脚交视频一区二区| 在线观看免费成人| 一区二区三区欧美日| 91同城在线观看| 国产精品美女久久久久久久| 国产成人免费视频| 国产女同互慰高潮91漫画| 国产又粗又猛又爽又黄91精品| 欧美一级在线视频| 日本系列欧美系列| 日韩一区二区三区电影| 久久精品国产第一区二区三区| 欧美一区二区三区影视| 免费在线观看一区| 亚洲精品在线电影| 国产69精品久久777的优势| 中文字幕欧美日韩一区| voyeur盗摄精品| 亚洲欧洲一区二区在线播放| youjizz国产精品| 亚洲三级电影全部在线观看高清| 99综合电影在线视频| 亚洲精品乱码久久久久久久久 | 色综合中文综合网| 色偷偷久久人人79超碰人人澡| 日韩一区日韩二区| 色哟哟欧美精品| 日韩高清欧美激情| 精品日本一线二线三线不卡| 国产精品资源在线| 中文字幕亚洲综合久久菠萝蜜| 色综合久久88色综合天天免费| 亚洲国产欧美一区二区三区丁香婷| 欧美日韩国产系列| 韩国精品主播一区二区在线观看| 国产色爱av资源综合区| 色综合色狠狠综合色| 日精品一区二区| 久久综合五月天婷婷伊人| 成人激情黄色小说| 亚洲伊人色欲综合网| 日韩精品一区国产麻豆| 不卡一二三区首页| 人人狠狠综合久久亚洲| 中文在线一区二区| 欧美放荡的少妇| 成人国产精品免费网站| 午夜精品在线看| 欧美国产禁国产网站cc| 欧美视频在线观看一区二区| 国内精品伊人久久久久av一坑| 亚洲欧洲成人av每日更新| 91精选在线观看| 成人性生交大片免费看在线播放| 亚洲尤物在线视频观看| 国产日产欧美一区二区三区| 91官网在线免费观看| 国产一区二区0| 亚洲第一av色| 亚洲视频免费在线| 精品美女被调教视频大全网站| 色成人在线视频| 丁香天五香天堂综合| 日韩国产精品久久久| 亚洲欧美日韩国产一区二区三区| 日韩一区二区三区精品视频| 欧美自拍偷拍午夜视频| 成人激情综合网站| 国产综合色产在线精品| 石原莉奈在线亚洲二区| 亚洲精品美腿丝袜| 国产精品久久久99| 2023国产一二三区日本精品2022| 欧美福利电影网| 一本大道综合伊人精品热热| 成人精品视频.| 国产·精品毛片| 国产一区在线看| 久久99精品国产| 日本不卡在线视频| 视频一区视频二区中文字幕| 亚洲曰韩产成在线| 一区二区三区中文字幕| 中文字幕欧美一区| 国产精品天天看| 久久精品欧美日韩| 久久一区二区三区四区| 精品国产免费人成在线观看| 在线不卡欧美精品一区二区三区| 在线观看亚洲精品| 91麻豆福利精品推荐| av不卡免费在线观看| 97久久精品人人做人人爽| 北条麻妃一区二区三区| 99久久久久免费精品国产| 99久久99久久精品国产片果冻| 丰满少妇久久久久久久| 国产激情91久久精品导航| 国产999精品久久久久久绿帽| 国产一区二区三区免费| 国内精品国产成人| 国产精品1区2区| 成人动漫视频在线| 91老司机福利 在线| 欧美午夜片在线看| 欧美高清视频在线高清观看mv色露露十八 | 国产精品伦一区二区三级视频| 国产日韩欧美精品综合| 国产精品私人影院| 亚洲视频电影在线| 午夜精品福利视频网站| 午夜精品福利一区二区三区蜜桃| 青娱乐精品在线视频| 狠狠网亚洲精品| 成人va在线观看| 欧美在线不卡一区| 日韩欧美国产午夜精品| 久久精品欧美一区二区三区不卡 | 国产丝袜美腿一区二区三区| 中文字幕亚洲一区二区av在线| 亚洲一级二级三级在线免费观看| 婷婷久久综合九色国产成人| 精品一区二区三区不卡| 99天天综合性| 欧美精品在线一区二区| 国产亚洲综合在线| 亚洲激情在线播放| 久久精品免费观看| 91婷婷韩国欧美一区二区| 7799精品视频| 国产精品福利一区| 青草国产精品久久久久久| 成人免费不卡视频| 91 com成人网| 国产精品第一页第二页第三页| 亚洲国产另类av| 国产成人亚洲综合a∨婷婷| 日本韩国精品在线| 久久亚洲精品小早川怜子| 亚洲人成人一区二区在线观看 | 五月天视频一区| 丰满少妇久久久久久久| 在线不卡的av| 亚洲精品国产品国语在线app| 日本中文在线一区| 色婷婷av一区二区| 国产亚洲一区二区三区四区 | 国产99一区视频免费| 欧美高清你懂得| 亚洲另类在线视频| 国产·精品毛片| 精品欧美一区二区久久| 亚洲精品乱码久久久久久 | 蜜桃视频在线观看一区| 91日韩一区二区三区| 久久影音资源网| 捆绑变态av一区二区三区| 在线国产电影不卡| 成人免费一区二区三区在线观看| 激情综合色综合久久| 欧美一区二区免费视频| 亚洲综合色在线| 一本到高清视频免费精品| 自拍偷拍国产精品| 丰满亚洲少妇av| 日本一区二区三区四区| 国产精选一区二区三区| 欧美va亚洲va国产综合| 欧美bbbbb| 51午夜精品国产| 日产国产欧美视频一区精品| 欧美日韩不卡一区| 亚欧色一区w666天堂| 欧美日韩国产成人在线免费| 一区二区在线观看av| 日本高清无吗v一区| 亚洲一区在线观看网站| 在线亚洲免费视频| 亚洲va国产天堂va久久en| 欧美日韩免费观看一区二区三区|