private void trayIcon_MouseDoubleClick(object sender, MouseEventArgs e) { this.Show(); this.WindowState = FormWindowState.Normal; this.Activate(); debugbox.SelectionStart = debugbox.TextLength; debugbox.ScrollToCaret(); }