private void richTextBoxChatIn_TextChanged(object sender, EventArgs e) { Sock.MyTypingStatus(true); updateToolStrip(); _lastTyped.Stop(); // resets timer _lastTyped.Start(); GC.Collect(); // just helps ok }
private void richTextBoxChatIn_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode.Equals(Keys.Enter)) { if (Control.ModifierKeys != Keys.Shift) { e.Handled = true; Sock.MyTypingStatus(false); processTypedMessage(this.richTextBoxChatIn.Text); } } }
private void _lastTyped_Tick(object sender, EventArgs e) { Sock.MyTypingStatus(false); updateToolStrip(); }