private void rtbMessageHistory_MouseDown(object sender, MouseEventArgs e) { Win32.HideCaret(rtbMessageHistory.Handle); }
private void rtbMessageHistory_KeyUp(object sender, KeyEventArgs e) { Win32.HideCaret(rtbMessageHistory.Handle); }
/// <summary> /// Bring the window to the foreground. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public void FileTransferDialog_SetForeground(object sender, EventArgs e) { this.WindowState = prevWindowState; Win32.SetForegroundWindow(new HandleRef(this, this.Handle)); }