private void SendButton_KeyDown(object sender, KeyEventArgs e) { if (e.Shift && e.KeyCode == Keys.Enter) { InputWindow.Text = InputWindow + "\n"; InputWindow.SelectionStart = InputWindow.Text.Length; } else if (e.KeyCode == Keys.Enter) { InputWindow.Text = ChatWindow.Text + "\n" + InputWindow.Text; string msg = InputWindow.Text; byte[] sBuffer = Encoding.UTF8.GetBytes(msg); InputWindow.Clear(); // Socket Send need } }
private void SendButton_Click(object sender, EventArgs e) { ChatWindow.Text = ChatWindow.Text + "\n" + InputWindow.Text; InputWindow.Clear(); }
private void CLEAR_Click(object sender, EventArgs e) { InputWindow.Clear(); CommandLine.Text = string.Empty; }