コード例 #1
0
		public ClientSet(FormChat parent, NetworkStream stream)
		{
			this.parent = parent;
			this.stream = stream;
			writer = new StreamWriter(stream);
			reader = new StreamReader(stream);
			receiveThread = new Thread(new ThreadStart(Receive));
			connected = true;
		}
コード例 #2
0
		private void btnStart_Click(object sender, EventArgs e)
		{
			if (txtName.Text == "")
				MessageBox.Show("이름을 입력하세요");
			else
			{
				FormChat frmChat = new FormChat(this);
				frmChat.Show();

			}
		}